mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(set-visited-file-name): Avoid crash if TRUENAME is nil.
This commit is contained in:
parent
ba9f641384
commit
4826e97fbc
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue