Commit 27d0420c authored by Richard M. Stallman's avatar Richard M. Stallman

(find-file-noselect): Expand buffer-file-truename

before copying it to anything else.
parent f8a80313
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment