mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 17:00:44 -08:00
* files.el (auto-save-mode): Handle buffer-save-size = -2
for toggling mode.
This commit is contained in:
parent
ece435a536
commit
b41b097623
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue