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

(auto-save-mode): Don't let buffer-saved-size stay negative.

parent 2788b7c9
......@@ -1884,6 +1884,10 @@ With prefix argument ARG, turn auto-saving on if positive, else off."
(not buffer-read-only))
buffer-file-name
(make-auto-save-file-name))))
;; If -1 was stored here, to temporarily turn off saving,
;; turn it back on.
(and (< buffer-saved-size 0)
(setq buffer-saved-size 0))
(if (interactive-p)
(message "Auto-save %s (in this buffer)"
(if buffer-auto-save-file-name "on" "off")))
......
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