info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .newsrc-dribble autosave


From: Katsumi Yamaoka
Subject: Re: .newsrc-dribble autosave
Date: Mon, 07 Jul 2014 15:06:32 +0900
User-agent: Gnus/5.130012 (真 Gnus v0.12) Emacs/24.4.50 (i686-pc-cygwin)

On Mon, 07 Jul 2014 13:45:34 +0900, Katsumi Yamaoka wrote:
> On Sun, 06 Jul 2014 01:09:42 +0200, Michael Heerdegen wrote:
[...]
>> The variable `auto-save-include-big-deletions` controls whether
>> auto-save-mode is turned off when the buffer has shrunk a lot - the
>> default is nil (meaning: turn off).

>> Gnus would have to set the buffer local value of this var to non-nil to
>> fix this.

> I'll do it.  Thanks.

Currently the change below has been installed in the Emacs trunk
only.  I'll install it in the Gnus Git master too when the server
ups (it seems down now).

--- gnus-start.el~      2014-03-23 23:08:55.000000000 +0000
+++ gnus-start.el       2014-07-07 05:38:49.670117000 +0000
@@ -889,6 +889,11 @@
       (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))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]