From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/18330 Path: main.gmane.org!not-for-mail From: Colin Rafferty Newsgroups: gmane.emacs.gnus.general Subject: Re: Drafts and autosave Date: 30 Oct 1998 11:00:47 -500 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035156872 5570 80.91.224.250 (20 Oct 2002 23:34:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:34:32 +0000 (UTC) Keywords: file,setq,buffer-auto-save-file-name,buffer 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 LAA06455 for ; Fri, 30 Oct 1998 11:01:55 -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 KAB18569; Fri, 30 Oct 1998 10:01:33 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 30 Oct 1998 10:01:24 -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 KAA16564 for ; Fri, 30 Oct 1998 10:01:14 -0600 (CST) Original-Received: from piinbh2.ms.com (firewall-user@piinbh2.ms.com [199.89.64.72]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA06421 for ; Fri, 30 Oct 1998 11:01:09 -0500 (EST) Original-Received: (from uucp@localhost) by piinbh2.ms.com (8.8.6/fw v1.22) id LAA21776 for ; Fri, 30 Oct 1998 11:00:57 -0500 (EST) Original-Received: from unknown(144.14.8.140) by piinbh2.ms.com via smap (4.1) id xma021518; Fri, 30 Oct 98 11:00:48 -0500 Original-Received: from sag3.morgan.com (sag3.morgan.com [144.14.8.198]) by sas1.morgan.com (8.8.5/hub v1.87) with ESMTP id LAA26536 for ; Fri, 30 Oct 1998 11:00:48 -0500 (EST) Original-Received: (from craffert@localhost) by sag3.morgan.com (8.8.5/client v1.15) id QAA26645; Fri, 30 Oct 1998 16:00:47 GMT Original-To: 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: I'm receiving a coded message from EUBIE BLAKE!! In-Reply-To: Jan Vroonhof's message of "30 Oct 1998 16:35:06 +0100" Original-Lines: 41 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:18330 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:18330 Jan Vroonhof writes: > Colin Rafferty writes: >> I think that this is a great idea. Unfortunately, I can't find the >> code that sets up the message buffer to be associated with a file. > (defun message-set-auto-save-file-name () > "Associate the message buffer with a file in the drafts directory." > which uses > nndraft-request-associate-buffer > However this does an explicit > (setq buffer-auto-save-file-name (make-auto-save-file-name))) Isn't this a beta list? Can't we suggest patches ourselves? The only defect is that after a do-auto-save, the buffer is still shown as modified (although it's really gone into the correct place). Here is the patch. 1998-10-30 Jan Vroonhof * nndraft.el (nndraft-request-associate-buffer): Set the autosave file name to be the actual file name. --- lisp/nndraft.el~ Sat Oct 10 20:32:06 1998 +++ lisp/nndraft.el Fri Oct 30 10:48:25 1998 @@ -156,7 +156,7 @@ group (nnoo-current-server 'nndraft) t 'noinsert)) (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)) + (setq buffer-auto-save-file-name buffer-file-name) (clear-visited-file-modtime) article)) ;; Colin