gnus-start.el (gnus-dribble-read-file): Don't stop auto-saving
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 7 Jul 2014 05:39:50 +0000 (05:39 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 7 Jul 2014 05:39:50 +0000 (05:39 +0000)
lisp/ChangeLog
lisp/gnus-start.el

index c38f21d..0861557 100644 (file)
@@ -1,3 +1,9 @@
+2014-07-07  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-start.el (gnus-dribble-read-file): Don't stop the auto-saving of
+       the dribble buffer even when it is shrunk a lot.
+       <http://thread.gmane.org/gmane.emacs.gnus.user/16923>
+
 2014-06-26  Glenn Morris  <rgm@gnu.org>
 
        * mm-util.el (help-function-arglist): Remove outdated declaration.
index b79b96e..766e7c2 100644 (file)
@@ -889,6 +889,11 @@ If REGEXP is given, lines that match it will be deleted."
       (setq buffer-save-without-query t)
       (erase-buffer)
       (setq buffer-file-name dribble-file)
+      ;; The buffer may be shrunk a lot when deleting old entries.
+      ;; It caused the auto-saving to stop.
+      (if (featurep 'emacs)
+         (set (make-local-variable 'auto-save-include-big-deletions) t)
+       (set (make-local-variable 'disable-auto-save-when-buffer-shrinks) nil))
       (auto-save-mode t)
       (buffer-disable-undo)
       (bury-buffer (current-buffer))