From aafd10935188ec46cf8937fd38d6504a69ca8a87 Mon Sep 17 00:00:00 2001 From: Markus Rost Date: Tue, 12 Aug 2003 23:37:25 +0000 Subject: [PATCH] (shell): With prefix-arg, suggest a new buffer name. --- lisp/ChangeLog | 4 ++++ lisp/shell.el | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2e2400979ae..65942465877 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2003-08-12 Markus Rost + + * shell.el (shell): With prefix-arg, suggest a new buffer name. + 2003-08-12 Andre Spiegel * 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. (interactive (list (and current-prefix-arg - (read-buffer "Shell buffer: " "*shell*")))) + (read-buffer "Shell buffer: " + (generate-new-buffer-name "*shell*"))))) (setq buffer (get-buffer-create (or buffer "*shell*"))) ;; Pop to buffer, so that the buffer's window will be correctly set ;; when we call comint (so that comint sets the COLUMNS env var properly). -- 2.39.2