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

(set-visited-file-name): Rename auto-save file only if it exists.

parent 94142e78
......@@ -1107,6 +1107,7 @@ if you wish to pass an empty string as the argument."
;; Rename the old auto save file if any.
(and oauto buffer-auto-save-file-name
(file-exists-p oauto)
(rename-file oauto buffer-auto-save-file-name t)))
(if buffer-file-name
(set-buffer-modified-p t)))
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