From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/18349 Path: main.gmane.org!not-for-mail From: Jan Vroonhof Newsgroups: gmane.emacs.gnus.general Subject: Re: Drafts and autosave Date: 31 Oct 1998 17:01:29 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035156888 5695 80.91.224.250 (20 Oct 2002 23:34:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:34:48 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA01767 for ; Sat, 31 Oct 1998 11:03:21 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB05904; Sat, 31 Oct 1998 10:01:50 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 31 Oct 1998 10:01:43 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id KAA06202 for ; Sat, 31 Oct 1998 10:01:35 -0600 (CST) Original-Received: from frege.math.ethz.ch (root@frege-d-math-north-g-west.math.ethz.ch [129.132.145.3]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA01746 for ; Sat, 31 Oct 1998 11:01:32 -0500 (EST) Original-Received: from bolzano (vroonhof@bolzano [129.132.146.140]) by frege.math.ethz.ch (8.8.8/Main-STAT-mailer) with ESMTP id RAA19471 for ; Sat, 31 Oct 1998 17:00:28 +0100 (MET) Original-Received: (vroonhof@localhost) by bolzano (SMI-8.6/D-MATH-client) id RAA08804; Sat, 31 Oct 1998 17:01:29 +0100 Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "Sat, 31 Oct 1998 14:26:37 GMT" Original-Lines: 34 User-Agent: Gnus/5.07004 (Pterodactyl Gnus v0.40) XEmacs/21.0 (Pyrenean-pre6) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:18349 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:18349 Lars Magne Ingebrigtsen writes: > > > I think the main complaint people have about the current behaviour > > is that unwanted autosaves can stick around, e.g. when one does > > `C-c C-k'. No that is not the Main complaint. The main problem is that there is no initial file in the nndraft group. I.e. if you are editng a new mail and Emacs crashes/you exit X/you hang up then ONLY the autosave file exists not the normal file. Therefore it does not show up in the nndraft group. What I would like is that when starting to edit the empty message is saved to the nndraft group so it exits. When you visit it the normal Emacs mechanisms will inform you there is an autosave file and suggest to M-x recover-file. Jan diff -u /u/users/vroonhof/scratch/xemacs/orig/pgnus-0.40/lisp/nndraft.el /u/users/vroonhof/.xemacs/lisp/gnus/nndraft.el --- /u/users/vroonhof/scratch/xemacs/orig/pgnus-0.40/lisp/nndraft.el Sat Oct 31 16:58:18 1998 +++ /u/users/vroonhof/.xemacs/lisp/gnus/nndraft.el Sat Oct 31 16:58:18 1998 @@ -157,7 +157,8 @@ (setq file (nndraft-article-filename article))) (setq buffer-file-name (expand-file-name file)) (setq buffer-auto-save-file-name (make-auto-save-file-name)) - (clear-visited-file-modtime) + (set-buffer-modified-p t) + (save-buffer) article)) (deffoo nndraft-request-expire-articles (articles group &optional server force)