Gnus development mailing list
 help / color / mirror / Atom feed
From: ShengHuo ZHU <zsh@cs.rochester.edu>
Subject: Re: Crashing Emacs and unsaved nnfolders
Date: 07 Mar 2001 13:31:47 -0500	[thread overview]
Message-ID: <5bofvde8h8.fsf@avocet.cs.rochester.edu> (raw)
In-Reply-To: <877l21sfik.fsf@wesley.springies.com> (Alan Shutko's message of "Wed, 07 Mar 2001 11:36:03 -0500")

[-- Attachment #1: Type: text/plain, Size: 859 bytes --]

Alan Shutko <ats@acm.org> 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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnmail.el-6.10.diff --]
[-- Type: text/x-patch, Size: 619 bytes --]

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."

  reply	other threads:[~2001-03-07 18:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-07 16:19 Crashing Emacs and unfinished drafts Kai Großjohann
2001-03-07 16:36 ` Crashing Emacs and unsaved nnfolders Alan Shutko
2001-03-07 18:31   ` ShengHuo ZHU [this message]
2001-03-07 19:12     ` Alan Shutko
2001-03-07 18:20 ` Crashing Emacs and unfinished drafts ShengHuo ZHU

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=5bofvde8h8.fsf@avocet.cs.rochester.edu \
    --to=zsh@cs.rochester.edu \
    /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).