changeset 15410:559d91fe836a

(find-alternate-file): Don't clear buffer-file-truename and friends until after calling unlock-buffer.
author Richard M. Stallman <rms@gnu.org>
date Wed, 12 Jun 1996 14:43:51 +0000
parents feee0ea235db
children 9691904c57a5
files lisp/files.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Wed Jun 12 03:13:51 1996 +0000
+++ b/lisp/files.el	Wed Jun 12 14:43:51 1996 +0000
@@ -586,12 +586,12 @@
     (if (get-buffer " **lose**")
 	(kill-buffer " **lose**"))
     (rename-buffer " **lose**")
-    (setq buffer-file-name nil)
-    (setq buffer-file-number nil)
-    (setq buffer-file-truename nil)
     (unwind-protect
 	(progn
 	  (unlock-buffer)
+	  (setq buffer-file-name nil)
+	  (setq buffer-file-number nil)
+	  (setq buffer-file-truename nil)
 	  (find-file filename))
       (cond ((eq obuf (current-buffer))
 	     (setq buffer-file-name ofile)