From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/12342 Path: main.gmane.org!not-for-mail From: Colin Rafferty Newsgroups: gmane.emacs.gnus.general Subject: Re: saving gnus .newsrc.eld Date: 25 Sep 1997 10:01:54 -0400 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035151895 3276 80.91.224.250 (20 Oct 2002 22:11:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:11:35 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.7/8.8.7) with ESMTP id IAA31048 for ; Thu, 25 Sep 1997 08:13:47 -0700 Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with SMTP id KAA18700 for ; Thu, 25 Sep 1997 10:07:35 -0500 (CDT) Original-Received: from wfdutilgw.ml.com (wfdutilf01.ml.com [206.3.74.31]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Thu, 25 Sep 1997 16:02:35 +0200 Original-Received: from ml1.ml.com ([199.201.57.130]) by wfdutilgw.ml.com (8.8.7/8.8.7/MLgwo-3.05) with ESMTP id KAA04677 for ; Thu, 25 Sep 1997 10:03:03 -0400 (EDT) Original-Received: from commpost.ml.com (commpost.ml.com [146.125.4.24]) by ml1.ml.com (8.8.5/8.8.5/MLml4-2.07) with SMTP id KAA16515 for ; Thu, 25 Sep 1997 10:01:57 -0400 (EDT) Original-Received: from spssunp.spspme.ml.com (spssunp.spspme.ml.com [192.168.111.13]) by commpost.ml.com (8.6.12/8.6.12) with ESMTP id KAA07362 for ; Thu, 25 Sep 1997 10:01:56 -0400 Original-Received: by spssunp.spspme.ml.com (SMI-8.6/SMI-4.1) id KAA00511; Thu, 25 Sep 1997 10:01:56 -0400 Original-To: (ding) GNUS Mailing List X-Face: D>:hrrB{l6#\wU;)0R:OHSTA@ayd.Oq?s@Rrc;[+z0m+<-U"$G-J6L)F2QY`qK~uPu!s1(6{\#uy!Ag/D)?'L[}xErXvxoPn8T_hKi{M]/(`BF{e}X7;hby`p\.E$rJ}Aff#BT,rdDIw\y X-Y-Zippy: Sign my PETITION. In-Reply-To: Mark Hovey's message of "25 Sep 1997 07:01:43 +0000" Original-Lines: 46 X-Mailer: Gnus v5.5/XEmacs 20.3(beta23) - "Sarajevo" Xref: main.gmane.org gmane.emacs.gnus.general:12342 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:12342 Mark Hovey writes: > If I run Gnus, then forget about it and kill emacs later > without ever quitting Gnus, then save-buffers-kill-emacs (C-x C-c) asks > me if I want to save .newsrc-dribble. At this point I have no good > option except to hit C-g, switch to the *Group buffer, and quit Gnus. > Is there some variable I can set so that Gnus will automatically save > itself when I leave a Gnus-controlled buffer, or something of that > sort? In general, is there a good solution to this? While it is very difficult to recognize leaving a Gnus buffer, there are ways of coming close. I have the following in my .gnus.el: (add-hook 'gnus-summary-exit-hook 'gnus-dribble-save) You could change it from gnus-dribble-save to gnus-group-save-newsrc, but I don't think the time spent is worth it. > My current solution is to redefine save-buffers-kill-emacs in my .gnus > file by adding the lines > (setq gnus-interactive-exit nil) > (gnus-group-exit) > right after the interactive statement. > Anybody have anything better to do? A better choice might be to put something on `kill-emacs-query-functions'. Untested code follows: (add-hook 'kill-emacs-query-functions '(lambda () (let ((gnus-interactive-exit nil)) (gnus-group-exit) nil))) ; this nil is important, see doc for k-e-q-f -- export-a-crypto-system, see: http://www.dcs.ex.ac.uk/~aba/rsa/ #!/bin/perl -sp0777i