diff options
Diffstat (limited to 'src/buffer.c')
| -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, |