summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-02-14 23:08:25 +0000
committerRichard M. Stallman <rms@gnu.org>1993-02-14 23:08:25 +0000
commit3bd779aadb256b7f1c07318a92477f0a9aceafef (patch)
treef013a82d8f360fc7c43fb08d6fd361e70bfb3c78 /src
parent8922af5f60b842d3c0af3e81401e7e8aa5aa17cd (diff)
downloademacs-3bd779aadb256b7f1c07318a92477f0a9aceafef.tar.gz
(Frename_buffer): Make prefix arg set UNIQUE.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 4057fffbf7d..3499ba29028 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -510,16 +510,17 @@ No argument or nil as argument means use current buffer as BUFFER.")
}
DEFUN ("rename-buffer", Frename_buffer, Srename_buffer, 1, 2,
- "sRename buffer (to new name): ",
+ "sRename buffer (to new name): \nP",
"Change current buffer's name to NEWNAME (a string).\n\
-If second arg DISTINGUISH is nil or omitted, it is an error if a\n\
+If second arg UNIQUE is nil or omitted, it is an error if a\n\
buffer named NEWNAME already exists.\n\
-If DISTINGUISH is non-nil, come up with a new name using\n\
+If UNIQUE is non-nil, come up with a new name using\n\
`generate-new-buffer-name'.\n\
-Return the name we actually gave the buffer.\n\
+Interactively, you can set UNIQUE with a prefix argument.\n\
+We return the name we actually gave the buffer.\n\
This does not change the name of the visited file (if any).")
- (name, distinguish)
- register Lisp_Object name, distinguish;
+ (name, unique)
+ register Lisp_Object name, unique;
{
register Lisp_Object tem, buf;
@@ -529,7 +530,7 @@ This does not change the name of the visited file (if any).")
return current_buffer->name;
if (!NILP (tem))
{
- if (!NILP (distinguish))
+ if (!NILP (unique))
name = Fgenerate_new_buffer_name (name);
else
error ("Buffer name \"%s\" is in use", XSTRING (name)->data);