changeset 13289:c4f93bb943b7

(set-visited-file-name): Abbreviate buffer-file-name.
author Richard M. Stallman <rms@gnu.org>
date Tue, 24 Oct 1995 22:14:39 +0000
parents 2699145c01cb
children 4caecb87e4ec
files lisp/files.el
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Tue Oct 24 17:55:30 1995 +0000
+++ b/lisp/files.el	Tue Oct 24 22:14:39 1995 +0000
@@ -1350,8 +1350,6 @@
 	(progn
 	  (setq truename (file-truename filename))
 	  (if find-file-visit-truename
-	      ;; Do not use the abbreviated filename, because
-	      ;; write-region will reset it to the expanded filename
 	      (setq filename truename))))
     (or (equal filename buffer-file-name)
 	(progn
@@ -1369,8 +1367,12 @@
 	      (rename-buffer new-name t))))
     (setq buffer-backed-up nil)
     (clear-visited-file-modtime)
+    ;; Abbreviate the file names of the buffer.
     (if truename
-	(setq buffer-file-truename (abbreviate-file-name truename)))
+	(progn
+	  (setq buffer-file-truename (abbreviate-file-name truename))
+	  (if find-file-visit-truename
+	      (setq buffer-file-name buffer-file-truename))))
     (setq buffer-file-number
 	  (if filename
 	      (nth 10 (file-attributes buffer-file-name))