diff --git a/lisp/files.el b/lisp/files.el index 30f04dfd2ee..a9430029d56 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -608,7 +608,9 @@ The buffer is not selected, just returned to the caller." (not (member logical find-file-not-true-dirname-list))) (setq buffer-file-name buffer-file-truename)) (if find-file-visit-truename - (setq buffer-file-name (setq filename buffer-file-truename))) + (setq buffer-file-name + (setq filename + (expand-file-name buffer-file-truename)))) ;; Set buffer's default directory to that of the file. (setq default-directory (file-name-directory filename)) ;; Turn off backup files for certain file names. Since