]> git.eshelyaron.com Git - emacs.git/commitdiff
(shell): If we create a new shell buffer,
authorRichard M. Stallman <rms@gnu.org>
Fri, 27 Jan 1995 22:37:16 +0000 (22:37 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 27 Jan 1995 22:37:16 +0000 (22:37 +0000)
select that buffer even if it has been renamed.

lisp/shell.el

index 3e68ded62ebbfa74eebd3097e93eb12106ed1dcd..c4a3bd79d0fa560a0c00d97549e79c3d8b272a35 100644 (file)
@@ -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*")))
 \f
 ;;; Directory tracking
 ;;; ===========================================================================