Mercurial > emacs
changeset 8599:cf3233d70e94
(Frename_buffer): Fix gcpro problems.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 23 Aug 1994 22:56:44 +0000 |
parents | d49cb56cce45 |
children | 0c56de09028d |
files | src/buffer.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c Tue Aug 23 22:43:43 1994 +0000 +++ b/src/buffer.c Tue Aug 23 22:56:44 1994 +0000 @@ -608,9 +608,11 @@ XSET (buf, Lisp_Buffer, current_buffer); Fsetcar (Frassq (buf, Vbuffer_alist), name); - if (NILP (current_buffer->filename) && !NILP (current_buffer->auto_save_file_name)) + if (NILP (current_buffer->filename) + && !NILP (current_buffer->auto_save_file_name)) call0 (intern ("rename-auto-save-file")); - return name; + /* refetch since that last call may have done GC */ + return current_buffer->name; } DEFUN ("other-buffer", Fother_buffer, Sother_buffer, 0, 2, 0,