diff lisp/files.el @ 6677:3c7e3d1cc3ad

(auto-save-mode): Don't let buffer-saved-size stay negative.
author Richard M. Stallman <rms@gnu.org>
date Tue, 05 Apr 1994 03:49:42 +0000
parents 76774f82fb36
children bf9c1e9a4055
line wrap: on
line diff
--- a/lisp/files.el	Tue Apr 05 03:40:06 1994 +0000
+++ b/lisp/files.el	Tue Apr 05 03:49:42 1994 +0000
@@ -1884,6 +1884,10 @@
 		      (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")))