Gnus development mailing list
 help / color / mirror / Atom feed
From: Colin Rafferty <colin@xemacs.org>
Subject: Re: Drafts and autosave
Date: 30 Oct 1998 11:00:47 -500	[thread overview]
Message-ID: <vgvr9vqt4y8.fsf@ms.com> (raw)
In-Reply-To: Jan Vroonhof's message of "30 Oct 1998 16:35:06 +0100"

Jan Vroonhof writes:
> Colin Rafferty <colin@xemacs.org> 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  <vroonhof@math.ethz.ch>

	* 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


  parent reply	other threads:[~1998-10-30 16:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-30 10:37 Jan Vroonhof
1998-10-30 14:33 ` Colin Rafferty
1998-10-30 15:35   ` Jan Vroonhof
1998-10-30 15:55     ` Jan Vroonhof
1998-10-30 16:00     ` Colin Rafferty [this message]
1998-10-30 16:14       ` Dan Christensen
1998-10-31 14:20         ` Lars Magne Ingebrigtsen
1998-10-31 16:01           ` Jan Vroonhof
1998-10-31 16:24             ` Dan Christensen
1998-11-07 13:40             ` Lars Magne Ingebrigtsen
1998-11-07 16:59               ` Nelson Jose dos Santos Ferreira
1998-11-07 23:36                 ` Lars Magne Ingebrigtsen
1998-11-08  0:33                   ` Joev Dubach
1998-11-10  4:33                     ` Lars Magne Ingebrigtsen
1998-11-09 10:32                   ` Robert Bihlmeyer
1998-11-09 14:10               ` Jan Vroonhof
1998-11-10  4:35                 ` Lars Magne Ingebrigtsen
1998-11-10  8:59                   ` Nelson Jose dos Santos Ferreira
1998-11-13 17:52                     ` Lars Magne Ingebrigtsen
1998-11-16 12:13                       ` Jan Vroonhof
1998-10-31 15:47       ` Jan Vroonhof

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=vgvr9vqt4y8.fsf@ms.com \
    --to=colin@xemacs.org \
    /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).