From b41b097623cb2f76c09b780a9329285ddfddf529 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 21 Jul 2009 14:40:33 +0000 Subject: [PATCH] * files.el (auto-save-mode): Handle buffer-save-size = -2 for toggling mode. --- lisp/ChangeLog | 5 +++++ lisp/files.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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)) -- 2.39.2