aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Rost2003-08-12 23:37:25 +0000
committerMarkus Rost2003-08-12 23:37:25 +0000
commitaafd10935188ec46cf8937fd38d6504a69ca8a87 (patch)
tree961e9031129bc0479b72a8d2b6cb868639ea1024
parent8b9177ce1bc5abadf4bb7e51a917df76a7b62003 (diff)
downloademacs-aafd10935188ec46cf8937fd38d6504a69ca8a87.tar.gz
emacs-aafd10935188ec46cf8937fd38d6504a69ca8a87.zip
(shell): With prefix-arg, suggest a new buffer name.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/shell.el3
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2e2400979ae..65942465877 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12003-08-12 Markus Rost <rost@math.ohio-state.edu>
2
3 * shell.el (shell): With prefix-arg, suggest a new buffer name.
4
12003-08-12 Andre Spiegel <spiegel@gnu.org> 52003-08-12 Andre Spiegel <spiegel@gnu.org>
2 6
3 * vc-sccs.el (vc-sccs-state-heuristic): Fix parentheses. 7 * vc-sccs.el (vc-sccs-state-heuristic): Fix parentheses.
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).