]> git.eshelyaron.com Git - emacs.git/commitdiff
(revert-buffer): Recompute buffer-file-truename.
authorRichard M. Stallman <rms@gnu.org>
Thu, 12 Jan 1995 23:45:01 +0000 (23:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 12 Jan 1995 23:45:01 +0000 (23:45 +0000)
lisp/files.el

index e36072dca51bfc257aaa429baaa5850bb2f46a20..f5ab60998eba8821ec67bb1ccd051881f8fcca83 100644 (file)
@@ -1969,6 +1969,10 @@ beginning and `after-revert-hook' at the end."
                 (insert-file-contents file-name (not auto-save-p)
                                       nil nil t)))
             (goto-char (min opoint (point-max)))
+            ;; Recompute the truename in case changes in symlinks
+            ;; have changed the truename.
+            (setq buffer-file-truename
+                  (abbreviate-file-name (file-truename buffer-file-name)))
             (after-find-file nil nil t t)
             (run-hooks 'after-revert-hook)
             t)))))