aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/shell.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 3e06801e7af..8c5781f9333 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -650,9 +650,9 @@ Otherwise, one argument `-i' is passed to the shell.
650 t shell-file-name)) 650 t shell-file-name))
651 'localname)))) 651 'localname))))
652 652
653 ;; Pop to buffer, so that the buffer's window will be correctly set 653 ;; The buffer's window must be correctly set when we call comint (so
654 ;; when we call comint (so that comint sets the COLUMNS env var properly). 654 ;; that comint sets the COLUMNS env var properly).
655 (pop-to-buffer buffer) 655 (switch-to-buffer buffer)
656 (unless (comint-check-proc buffer) 656 (unless (comint-check-proc buffer)
657 (let* ((prog (or explicit-shell-file-name 657 (let* ((prog (or explicit-shell-file-name
658 (getenv "ESHELL") shell-file-name)) 658 (getenv "ESHELL") shell-file-name))