changeset 87215:7d40f609f780

(Frename_buffer): Change interactive spec from "s" to Lisp code that uses `read-buffer' with current buffer as default.
author Juri Linkov <juri@jurta.org>
date Sun, 09 Dec 2007 23:49:00 +0000
parents c12a7d068bf6
children 2fb17842cf3e
files src/buffer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Sun Dec 09 23:48:33 2007 +0000
+++ b/src/buffer.c	Sun Dec 09 23:49:00 2007 +0000
@@ -1169,7 +1169,8 @@
 }
 
 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.