summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-01-27 22:37:16 +0000
committerRichard M. Stallman <rms@gnu.org>1995-01-27 22:37:16 +0000
commitb0824def8b5e50269110e97d1e4386c706e6c0b9 (patch)
tree1cc5a868d43841ce5b1317e0aa13715e437af8f0 /lisp/shell.el
parent44705c0e41bae1261423b418c65e3875700a4bf1 (diff)
(shell): If we create a new shell buffer,
select that buffer even if it has been renamed.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 3e68ded62eb..c4a3bd79d0f 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -368,8 +368,9 @@ Otherwise, one argument `-i' is passed to the shell.
(if (and xargs-name (boundp xargs-name))
(symbol-value xargs-name)
'("-i"))))
- (shell-mode)))
- (switch-to-buffer "*shell*"))
+ (shell-mode)
+ (switch-to-buffer (current-buffer)))
+ (switch-to-buffer "*shell*")))
;;; Directory tracking
;;; ===========================================================================