Commit aafd1093 authored by Markus Rost's avatar Markus Rost
Browse files

(shell): With prefix-arg, suggest a new buffer name.

parent 8b9177ce
2003-08-12 Markus Rost <rost@math.ohio-state.edu>
* shell.el (shell): With prefix-arg, suggest a new buffer name.
2003-08-12 Andre Spiegel <spiegel@gnu.org>
 
* vc-sccs.el (vc-sccs-state-heuristic): Fix parentheses.
......
......@@ -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).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment