diff options
| author | Richard M. Stallman | 1994-11-15 17:05:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-11-15 17:05:44 +0000 |
| commit | fb5eba9c6f46199350bd110e02d7dfdadc5dd8e4 (patch) | |
| tree | 0a530cb978020921f34002fdfb3d136e3eb08fcd /src | |
| parent | e6e332b9c251884a98be87c7b645ce9c2bce7f34 (diff) | |
| download | emacs-fb5eba9c6f46199350bd110e02d7dfdadc5dd8e4.tar.gz emacs-fb5eba9c6f46199350bd110e02d7dfdadc5dd8e4.zip | |
(Frename_buffer): Rename arg NAME to NEWNAME.
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 6f186c0e7d6..82ac713bd70 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).") | |||
| 584 | It makes UNIQUE equivalent to | 584 | It makes UNIQUE equivalent to |
| 585 | (rename-buffer (generate-new-buffer-name NEWNAME)). */ | 585 | (rename-buffer (generate-new-buffer-name NEWNAME)). */ |
| 586 | if (NILP (unique) && XBUFFER (tem) == current_buffer) | 586 | if (NILP (unique) && XBUFFER (tem) == current_buffer) |
| 587 | return current_buffer->newname; | 587 | return current_buffer->name; |
| 588 | if (!NILP (tem)) | 588 | if (!NILP (tem)) |
| 589 | { | 589 | { |
| 590 | if (!NILP (unique)) | 590 | if (!NILP (unique)) |
| @@ -604,8 +604,8 @@ This does not change the name of the visited file (if any).") | |||
| 604 | if (NILP (current_buffer->filename) | 604 | if (NILP (current_buffer->filename) |
| 605 | && !NILP (current_buffer->auto_save_file_name)) | 605 | && !NILP (current_buffer->auto_save_file_name)) |
| 606 | call0 (intern ("rename-auto-save-file")); | 606 | call0 (intern ("rename-auto-save-file")); |
| 607 | /* refetch since that last call may have done GC */ | 607 | /* Refetch since that last call may have done GC. */ |
| 608 | return current_buffer->newname; | 608 | return current_buffer->name; |
| 609 | } | 609 | } |
| 610 | 610 | ||
| 611 | DEFUN ("other-buffer", Fother_buffer, Sother_buffer, 0, 2, 0, | 611 | DEFUN ("other-buffer", Fother_buffer, Sother_buffer, 0, 2, 0, |