changeset 104008:4bb394828f1e

* files.el (auto-save-mode): Handle buffer-save-size = -2 for toggling mode.
author Richard M. Stallman <rms@gnu.org>
date Tue, 21 Jul 2009 14:40:33 +0000
parents e9be065e7391
children d66fb2315dc0
files lisp/ChangeLog lisp/files.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Jul 21 09:26:43 2009 +0000
+++ b/lisp/ChangeLog	Tue Jul 21 14:40:33 2009 +0000
@@ -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.
--- a/lisp/files.el	Tue Jul 21 09:26:43 2009 +0000
+++ b/lisp/files.el	Tue Jul 21 14:40:33 2009 +0000
@@ -5005,7 +5005,7 @@
 		 (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))