Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] Recent change causes lots of files to get a X-Draft-From: header
@ 2003-01-02  7:52 Michael Shields
  2003-01-02  8:49 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Shields @ 2003-01-02  7:52 UTC (permalink / raw)


Just now I tried to save an Emacs Lisp file and found that an
X-Draft-From: header had appeared in it.


2003-01-02  Michael Shields  <shields@msrl.com>

	* nndraft.el (nndraft-request-associate-buffer): Make
	write-contents-hooks buffer-local before setting it.

--- lisp/nndraft.el	2003/01/01 18:51:42	6.15
+++ lisp/nndraft.el	2003/01/02 07:53:06
@@ -173,6 +173,7 @@
     (setq buffer-file-name (expand-file-name file)
 	  buffer-auto-save-file-name (make-auto-save-file-name))
     (clear-visited-file-modtime)
+    (make-variable-buffer-local 'write-contents-hooks)
     (push 'nndraft-generate-headers write-contents-hooks)
     article))
 

-- 
Shields.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Recent change causes lots of files to get a X-Draft-From: header
  2003-01-02  7:52 [PATCH] Recent change causes lots of files to get a X-Draft-From: header Michael Shields
@ 2003-01-02  8:49 ` Lars Magne Ingebrigtsen
  2003-01-02 15:20   ` Michael Shields
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-02  8:49 UTC (permalink / raw)


Michael Shields <shields@msrl.com> writes:

> 	* nndraft.el (nndraft-request-associate-buffer): Make
> 	write-contents-hooks buffer-local before setting it.

Thanks for the patch; I've applied it to Oort Gnus v0.08 (i. e., CVS).

(In Emacs, that variable is buffer-local already.  Oh, and I changed
it to use `make-local-variable' instead.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Recent change causes lots of files to get a X-Draft-From: header
  2003-01-02  8:49 ` Lars Magne Ingebrigtsen
@ 2003-01-02 15:20   ` Michael Shields
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Shields @ 2003-01-02 15:20 UTC (permalink / raw)


In article <m31y3whr6u.fsf@quimbies.gnus.org>,
Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:
> Oh, and I changed
> it to use `make-local-variable' instead.

You're right; that was my error.
-- 
Shields.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-02 15:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-02  7:52 [PATCH] Recent change causes lots of files to get a X-Draft-From: header Michael Shields
2003-01-02  8:49 ` Lars Magne Ingebrigtsen
2003-01-02 15:20   ` Michael Shields

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