From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48541 Path: main.gmane.org!not-for-mail From: Michael Shields Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] Recent change causes lots of files to get a X-Draft-From: header Date: Thu, 02 Jan 2003 07:52:25 +0000 Organization: Mad Science Research Labs Sender: owner-ding@hpc.uh.edu Message-ID: <87k7hoj8ee.fsf@mulligatwani.msrl.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041496589 12910 80.91.224.249 (2 Jan 2003 08:36:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 2 Jan 2003 08:36:29 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18U0q1-0003LX-00 for ; Thu, 02 Jan 2003 09:36:25 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18U09j-00083v-00; Thu, 02 Jan 2003 01:52:43 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 02 Jan 2003 01:53:35 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id BAA22340 for ; Thu, 2 Jan 2003 01:53:25 -0600 (CST) Original-Received: (qmail 75212 invoked by alias); 2 Jan 2003 07:52:28 -0000 Original-Received: (qmail 75207 invoked from network); 2 Jan 2003 07:52:28 -0000 Original-Received: from challah.msrl.com (198.137.194.222) by 66.230.238.6 with SMTP; 2 Jan 2003 07:52:28 -0000 Original-Received: (qmail 25945 invoked from network); 2 Jan 2003 07:52:25 -0000 Original-Received: from localhost (HELO mulligatwani.msrl.com) (127.0.0.1) by localhost with SMTP; 2 Jan 2003 07:52:25 -0000 Original-To: ding@gnus.org Original-Lines: 22 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Military Intelligence, i386-debian-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48541 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48541 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 * 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.