all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* rename-buffer and ido-everythwere
@ 2007-12-11 12:30 William Xu
  2007-12-11 14:01 ` Kim F. Storm
  0 siblings, 1 reply; 6+ messages in thread
From: William Xu @ 2007-12-11 12:30 UTC (permalink / raw)
  To: emacs-devel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-12  0:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 12:30 rename-buffer and ido-everythwere William Xu
2007-12-11 14:01 ` 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

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.