🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.gnus
Article #529

killed groups / updating newsrc.el

#529
From: Benjamin R. Liblit
Date: Mon, 23 Nov 1992 22:03
31 lines
1676 bytes
I'm sure there's a simple hook for this, but my brain hurts today, so
I'm calling for ideas.

Consider the following sequence of actions:

	1. Enter GNUS
	2. Kill some groups via "C-k" or (gnus-Group-kill-group)
	3. Save all buffers via "C-u C-x s" or (save-some-buffers 't)
	4. Quit GNUS via "q" or (gnus-Group-exit)

Since saving all buffers saved the buffer holding .newsrc, quitting
GNUS does not update the .newsrc.el file.  No problem, right?  The
next time GNUS starts up, it should realize that .newsrc.el is
out-of-date, and just use .newsrc instead.

Well, that seems to work for determining which articles I have read,
but it fails to remember the groups that I killed in step 2.  They
appear in the groups list as though I had never killed them.

My instinct is to use gnus-Exit-gnus-hook, probably using
file-newer-than-file-p to decide if .newsrc.el needs to be updated.
However, I'd *really* like a solution that does not depend upon me
exiting GNUS via gnus-Group-exit.  That is, if I spontaneously issue
"C-x C-c", or (save-buffers-kill-emacs), I'd like GNUS to have its
head on straight the next time it starts up.

Any suggestions?

--
Ben Liblit   -----   "Fais que tes reves soient plus longs que la nuit."
liblit@cs.psu.edu   --   brl102@psuvm.psu.edu   --   brl102@psuvm.bitnet
Technical Details
Message-ID: <By6vxt.3pB@cs.psu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uwm.edu!psuvax1!liblit

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.gnus
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uwm.edu!psuvax1!liblit
From: liblit@cs.psu.edu (Benjamin R. Liblit)
Subject: killed groups / updating newsrc.el
Message-ID: <By6vxt.3pB@cs.psu.edu>
Sender: news@cs.psu.edu (Usenet)
Nntp-Posting-Host: waldo.cs.psu.edu
Distribution: gnu
Date: Mon, 23 Nov 1992 22:03:24 GMT
Lines: 31