Commit b41b0976 authored by Richard M. Stallman's avatar Richard M. Stallman

* files.el (auto-save-mode): Handle buffer-save-size = -2

for toggling mode.
parent ece435a5
2009-07-21 Richard Stallman <rms@gnu.org>
* files.el (auto-save-mode): Handle buffer-save-size = -2
for toggling mode.
2009-07-21 Glenn Morris <rgm@gnu.org>
* textmodes/ispell.el (ispell-looking-back): Update declaration.
......
......@@ -5005,7 +5005,7 @@ With prefix argument ARG, turn auto-saving on if positive, else off."
(or (not buffer-auto-save-file-name)
;; If auto-save is off because buffer has shrunk,
;; then toggling should turn it on.
(< buffer-saved-size 0))
(= buffer-saved-size -1))
(or (eq arg t) (listp arg) (and (integerp arg) (> arg 0))))
(if (and buffer-file-name auto-save-visited-file-name
(not buffer-read-only))
......
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