diff options
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index fdf80cba220..b220b85fbbe 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -533,7 +533,8 @@ Otherwise, one argument `-i' is passed to the shell. | |||
| 533 | (interactive | 533 | (interactive |
| 534 | (list | 534 | (list |
| 535 | (and current-prefix-arg | 535 | (and current-prefix-arg |
| 536 | (read-buffer "Shell buffer: " "*shell*")))) | 536 | (read-buffer "Shell buffer: " |
| 537 | (generate-new-buffer-name "*shell*"))))) | ||
| 537 | (setq buffer (get-buffer-create (or buffer "*shell*"))) | 538 | (setq buffer (get-buffer-create (or buffer "*shell*"))) |
| 538 | ;; Pop to buffer, so that the buffer's window will be correctly set | 539 | ;; Pop to buffer, so that the buffer's window will be correctly set |
| 539 | ;; when we call comint (so that comint sets the COLUMNS env var properly). | 540 | ;; when we call comint (so that comint sets the COLUMNS env var properly). |