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

(set-visited-file-name): Change the auto save file name.

parent 45ca32a6
......@@ -926,7 +926,14 @@ if you wish to pass an empty string as the argument."
(setq backup-inhibited t)))
;; If auto-save was not already on, turn it on if appropriate.
(if (not buffer-auto-save-file-name)
(auto-save-mode (and buffer-file-name auto-save-default)))
(auto-save-mode (and buffer-file-name auto-save-default))
;; If auto save is on, start using a new name.
;; We deliberately don't rename or delete the old auto save
;; for the old visited file name. This is because perhaps
;; the user wants to save the new state and then compare with the
;; previous state from the auto save file.
(setq buffer-auto-save-file-name
(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