From: Stainless Steel Rat <ratinox@peorth.gweep.net>
Subject: Re: Saving .newsrc upon *Summary* exit
Date: Tue, 24 Jul 2001 14:39:03 -0400 [thread overview]
Message-ID: <01Jul24.144053edt.115274@gateway.intersys.com> (raw)
In-Reply-To: <2nr8v65i4g.fsf@piglet.jia.vnet>
* ShengHuo ZHU <zsh@cs.rochester.edu> on Tue, 24 Jul 2001
| I think it is OK. If not, please post your solution.
I've been doing it for a while, though instead of saving every group (which
is slow) I programmatically save every five groups exited, like so:
(add-hook 'gnus-startup-hook 'rat:gnus-startup-hook)
(defun rat:gnus-startup-hook ()
(setq rat:gnus-selected-newsgroups 0)
(setq rat:gnus-incremental-save-newsrc t)
(setq rat:gnus-incremental-save-newsrc-threshold 5)
)
(add-hook 'gnus-save-newsrc-hook 'rat:gnus-save-newsrc-hook)
(defun rat:gnus-save-newsrc-hook ()
(if rat:gnus-incremental-save-newsrc
(setq rat:gnus-selected-newsgroups 0)))
(add-hook 'gnus-exit-group-hook 'rat:gnus-exit-group-hook)
(defun rat:gnus-exit-group-hook ()
(if rat:gnus-incremental-save-newsrc
(progn
(setq rat:gnus-selected-newsgroups (+ rat:gnus-selected-newsgroups 1))
(if (> rat:gnus-selected-newsgroups
rat:gnus-incremental-save-newsrc-threshold)
(gnus-save-newsrc-file)))))
--
Rat <ratinox@peorth.gweep.net> \ Warning: pregnant women, the elderly, and
Minion of Nathan - Nathan says Hi! \ children under 10 should avoid prolonged
PGP Key: at a key server near you! \ exposure to Happy Fun Ball.
prev parent reply other threads:[~2001-07-24 18:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-15 19:47 Paul Jarc
2001-07-24 16:17 ` Colin Rafferty
2001-07-24 17:53 ` ShengHuo ZHU
2001-07-24 18:18 ` Paul Jarc
2001-07-24 21:55 ` Kai Großjohann
2001-07-24 22:37 ` Paul Jarc
2001-07-25 1:14 ` David S. Goldberg
2001-07-25 8:21 ` Kai Großjohann
2001-07-24 18:39 ` Stainless Steel Rat [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=01Jul24.144053edt.115274@gateway.intersys.com \
--to=ratinox@peorth.gweep.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).