aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1994-11-15 17:05:44 +0000
committerRichard M. Stallman <[email protected]>1994-11-15 17:05:44 +0000
commitfb5eba9c6f46199350bd110e02d7dfdadc5dd8e4 (patch)
tree0a530cb978020921f34002fdfb3d136e3eb08fcd /src/buffer.c
parente6e332b9c251884a98be87c7b645ce9c2bce7f34 (diff)
(Frename_buffer): Rename arg NAME to NEWNAME.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 6f186c0e7d..82ac713bd7 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -584,7 +584,7 @@ This does not change the name of the visited file (if any).")
It makes UNIQUE equivalent to
(rename-buffer (generate-new-buffer-name NEWNAME)). */
if (NILP (unique) && XBUFFER (tem) == current_buffer)
- return current_buffer->newname;
+ return current_buffer->name;
if (!NILP (tem))
{
if (!NILP (unique))
@@ -604,8 +604,8 @@ This does not change the name of the visited file (if any).")
if (NILP (current_buffer->filename)
&& !NILP (current_buffer->auto_save_file_name))
call0 (intern ("rename-auto-save-file"));
- /* refetch since that last call may have done GC */
- return current_buffer->newname;
+ /* Refetch since that last call may have done GC. */
+ return current_buffer->name;
}
DEFUN ("other-buffer", Fother_buffer, Sother_buffer, 0, 2, 0,