From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35252 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: Crashing Emacs and unsaved nnfolders Date: 07 Mar 2001 13:31:47 -0500 Message-ID: <5bofvde8h8.fsf@avocet.cs.rochester.edu> References: <877l21sfik.fsf@wesley.springies.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035171025 1991 80.91.224.250 (21 Oct 2002 03:30:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:30:25 +0000 (UTC) Return-Path: Original-Received: (qmail 7511 invoked by alias); 7 Mar 2001 18:31:53 -0000 Original-Received: (qmail 7502 invoked from network); 7 Mar 2001 18:31:48 -0000 Original-Received: from gate.cs.rochester.edu (192.5.53.207) by gnus.org with SMTP; 7 Mar 2001 18:31:48 -0000 Original-Received: from avocet.cs.rochester.edu (avocet.cs.rochester.edu [192.5.53.22]) by gate.cs.rochester.edu (8.9.1b+Sun/U) with ESMTP id NAA00528 for ; Wed, 7 Mar 2001 13:31:47 -0500 (EST) Original-Received: (from zsh@localhost) by avocet.cs.rochester.edu (8.9.1b+Sun/Q++) id NAA23934; Wed, 7 Mar 2001 13:31:47 -0500 (EST) Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: <877l21sfik.fsf@wesley.springies.com> (Alan Shutko's message of "Wed, 07 Mar 2001 11:36:03 -0500") User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 Original-Lines: 27 Xref: main.gmane.org gmane.emacs.gnus.general:35252 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35252 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Alan Shutko writes: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > > > When Emacs crashes > > Similar problem. I use nnmail-expiry-target to send some things to > nnfolder groups for archival. Those files are appended to in memory > and saved when gnus quits. They are not saved when I hit "s" in > *Group*. (Problem 1.) > > If Emacs should crash before I quit Gnus, Gnus uses the last-saved > version of the file, and loses anything which had been modified in the > autosave. > > Given Gnus' ability to handle other unsaved files (like newsrc) it > would be nice if it would handle these, but it would also be nice if > it would save them when I hit s. You can try the attached patch (not in the CVS repository). The drawback is that Gnus has to save the entire nnfolder file for each expired article. ShengHuo --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=nnmail.el-6.10.diff Index: nnmail.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnmail.el,v retrieving revision 6.10 diff -u -u -r6.10 nnmail.el --- nnmail.el 2001/02/08 23:53:22 6.10 +++ nnmail.el 2001/03/07 18:25:21 @@ -1632,7 +1632,7 @@ (when (nnheader-functionp target) (setq target (funcall target group))) (unless (eq target 'delete) - (gnus-request-accept-article target nil nil t)))) + (gnus-request-accept-article target nil t t)))) (defun nnmail-check-syntax () "Check (and modify) the syntax of the message in the current buffer." --=-=-=--