* Suggestion for C-u M-x shell
@ 2003-08-11 19:33 Markus Rost
2003-08-12 23:21 ` Richard Stallman
0 siblings, 1 reply; 3+ messages in thread
From: Markus Rost @ 2003-08-11 19:33 UTC (permalink / raw)
To run several shells in Emacs, one uses
C-u M-x shell
which prompts for a buffer name with "*shell*" as default. However
for that name it would be enough to just call M-x shell without a
prefix. What about suggesting a new unused buffer name in the prompt?
That would come in handy for starting a new shell. What do people
think?
Here is a patch for this.
* shell.el (shell): With prefix-arg, suggest a new buffer name.
===Buffer *diff*============================================
cd /home/rost/cvs/emacs/lisp/
diff -c /home/rost/cvs/emacs/lisp/shell.el /tmp/buffer-content-6992R3d
*** /home/rost/cvs/emacs/lisp/shell.el Thu Jun 12 18:20:49 2003
--- /tmp/buffer-content-6992R3d Mon Aug 11 12:43:33 2003
***************
*** 533,539 ****
(interactive
(list
(and current-prefix-arg
! (read-buffer "Shell buffer: " "*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).
--- 533,540 ----
(interactive
(list
(and current-prefix-arg
! (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).
Diff finished at Mon Aug 11 12:43:34
============================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-13 1:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-11 19:33 Suggestion for C-u M-x shell Markus Rost
2003-08-12 23:21 ` Richard Stallman
2003-08-13 1:34 ` Miles Bader
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).