From: William Xu <william.xwl@gmail.com>
To: emacs-devel@gnu.org
Subject: rename-buffer and ido-everythwere
Date: Tue, 11 Dec 2007 21:30:04 +0900 [thread overview]
Message-ID: <m2mysho1mb.fsf@gmail.com> (raw)
When ido-everythwere is turned on, M-x rename-buffer now would prompt up
a list of opened buffers for selection, which is awkward. I think the
old behavior that prompts nothing is a lot better.
This behavior looks like introduced by this change:
,----[ src/buffer.c ]
| Revision 1.542 - (view) (download) (as text) (annotate) - [select for diffs]
| Sun Dec 9 23:49:00 2007 UTC (36 hours, 25 minutes ago) by jurta
| Branch: MAIN
| Changes since 1.541: +2 -1 lines
| Diff to previous 1.541
|
| (Frename_buffer): Change interactive spec from "s" to
| Lisp code that uses `read-buffer' with current buffer as default.
`----
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Juri Linkov <jurta> 07/12/09 23:49:00
Index: buffer.c
===================================================================
RCS file: /sources/emacs/emacs/src/buffer.c,v
retrieving revision 1.541
retrieving revision 1.542
diff -u -b -r1.541 -r1.542
--- buffer.c 28 Nov 2007 04:46:22 -0000 1.541
+++ buffer.c 9 Dec 2007 23:49:00 -0000 1.542
@@ -1169,7 +1169,8 @@
}
\f
DEFUN ("rename-buffer", Frename_buffer, Srename_buffer, 1, 2,
- "sRename buffer (to new name): \nP",
+ "(list (read-buffer \"Rename buffer (to new name): \" \
+ (current-buffer)) current-prefix-arg)",
doc: /* Change current buffer's name to NEWNAME (a string).
If second arg UNIQUE is nil or omitted, it is an error if a
buffer named NEWNAME already exists.
--
William
http://williamxu.net9.org
next reply other threads:[~2007-12-11 12:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 12:30 William Xu [this message]
2007-12-11 14:01 ` rename-buffer and ido-everythwere Kim F. Storm
2007-12-11 14:43 ` William Xu
2007-12-11 14:57 ` Stefan Monnier
2007-12-11 21:47 ` Kim F. Storm
2007-12-12 0:12 ` Juri Linkov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2mysho1mb.fsf@gmail.com \
--to=william.xwl@gmail.com \
--cc=emacs-devel@gnu.org \
/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 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).