From: Markus Rost <rost@math.ohio-state.edu>
Subject: Suggestion for C-u M-x shell
Date: Mon, 11 Aug 2003 15:33:33 -0400 (EDT) [thread overview]
Message-ID: <200308111933.h7BJXXUG012298@hampton.math.ohio-state.edu> (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
============================================================
next reply other threads:[~2003-08-11 19:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-11 19:33 Markus Rost [this message]
2003-08-12 23:21 ` Suggestion for C-u M-x shell Richard Stallman
2003-08-13 1:34 ` Miles Bader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200308111933.h7BJXXUG012298@hampton.math.ohio-state.edu \
--to=rost@math.ohio-state.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.