Commit 4826e97f authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(set-visited-file-name): Avoid crash if TRUENAME is nil.

parent ba9f6413
......@@ -1232,7 +1232,8 @@ if you wish to pass an empty string as the argument."
(rename-buffer new-name t))))
(setq buffer-backed-up nil)
(clear-visited-file-modtime)
(setq buffer-file-truename (abbreviate-file-name truename))
(if truename
(setq buffer-file-truename (abbreviate-file-name truename)))
(setq buffer-file-number
(if filename
(nth 10 (file-attributes buffer-file-name))
......
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