home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / gnus / 1288 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.6 KB  |  43 lines

  1. Newsgroups: gnu.emacs.gnus
  2. Path: sparky!uunet!caen!uwm.edu!psuvax1!liblit
  3. From: liblit@cs.psu.edu (Benjamin R. Liblit)
  4. Subject: killed groups / updating newsrc.el
  5. Message-ID: <By6vxt.3pB@cs.psu.edu>
  6. Sender: news@cs.psu.edu (Usenet)
  7. Nntp-Posting-Host: waldo.cs.psu.edu
  8. Distribution: gnu
  9. Date: Mon, 23 Nov 1992 22:03:24 GMT
  10. Lines: 31
  11.  
  12. I'm sure there's a simple hook for this, but my brain hurts today, so
  13. I'm calling for ideas.
  14.  
  15. Consider the following sequence of actions:
  16.  
  17.     1. Enter GNUS
  18.     2. Kill some groups via "C-k" or (gnus-Group-kill-group)
  19.     3. Save all buffers via "C-u C-x s" or (save-some-buffers 't)
  20.     4. Quit GNUS via "q" or (gnus-Group-exit)
  21.  
  22. Since saving all buffers saved the buffer holding .newsrc, quitting
  23. GNUS does not update the .newsrc.el file.  No problem, right?  The
  24. next time GNUS starts up, it should realize that .newsrc.el is
  25. out-of-date, and just use .newsrc instead.
  26.  
  27. Well, that seems to work for determining which articles I have read,
  28. but it fails to remember the groups that I killed in step 2.  They
  29. appear in the groups list as though I had never killed them.
  30.  
  31. My instinct is to use gnus-Exit-gnus-hook, probably using
  32. file-newer-than-file-p to decide if .newsrc.el needs to be updated.
  33. However, I'd *really* like a solution that does not depend upon me
  34. exiting GNUS via gnus-Group-exit.  That is, if I spontaneously issue
  35. "C-x C-c", or (save-buffers-kill-emacs), I'd like GNUS to have its
  36. head on straight the next time it starts up.
  37.  
  38. Any suggestions?
  39.  
  40. --
  41. Ben Liblit   -----   "Fais que tes reves soient plus longs que la nuit."
  42. liblit@cs.psu.edu   --   brl102@psuvm.psu.edu   --   brl102@psuvm.bitnet
  43.