changeset 3191:d96fd9315996

(find-alternate-file): Hide truename and inode number temporarily, like the visited file name.
author Richard M. Stallman <rms@gnu.org>
date Fri, 28 May 1993 01:22:00 +0000
parents 05268cd6e571
children 0f69ebbf67d1
files lisp/files.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Fri May 28 01:19:17 1993 +0000
+++ b/lisp/files.el	Fri May 28 01:22:00 1993 +0000
@@ -421,15 +421,21 @@
        (error "Aborted"))
   (let ((obuf (current-buffer))
 	(ofile buffer-file-name)
+	(onum buffer-file-number)
+	(otrue buffer-file-truename)
 	(oname (buffer-name)))
     (rename-buffer " **lose**")
     (setq buffer-file-name nil)
+    (setq buffer-file-number nil)
+    (setq buffer-file-truename nil)
     (unwind-protect
 	(progn
 	  (unlock-buffer)
 	  (find-file filename))
       (cond ((eq obuf (current-buffer))
 	     (setq buffer-file-name ofile)
+	     (setq buffer-file-number onum)
+	     (setq buffer-file-truename otrue)
 	     (lock-buffer)
 	     (rename-buffer oname))))
     (or (eq (current-buffer) obuf)