From: Richard M. Stallman Date: Tue, 21 Jul 2009 14:40:33 +0000 (+0000) Subject: * files.el (auto-save-mode): Handle buffer-save-size = -2 X-Git-Tag: emacs-pretest-23.1.90~2080 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b41b097623cb2f76c09b780a9329285ddfddf529;p=emacs.git * files.el (auto-save-mode): Handle buffer-save-size = -2 for toggling mode. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 581c20fcf65..77dd24db798 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-07-21 Richard Stallman + + * files.el (auto-save-mode): Handle buffer-save-size = -2 + for toggling mode. + 2009-07-21 Glenn Morris * textmodes/ispell.el (ispell-looking-back): Update declaration. diff --git a/lisp/files.el b/lisp/files.el index d2109215d3e..1528b380ff3 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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))