From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60188 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: message-add-action problem Date: Fri, 22 Apr 2005 09:46:11 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114130706 28604 80.91.229.2 (22 Apr 2005 00:45:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2005 00:45:06 +0000 (UTC) Original-X-From: ding-owner+M8715@lists.math.uh.edu Fri Apr 22 02:44:59 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOmHX-0003yQ-1l for ding-account@gmane.org; Fri, 22 Apr 2005 02:44:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DOmKr-0004dY-00; Thu, 21 Apr 2005 19:47:57 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DOmJR-0004dK-00 for ding@lists.math.uh.edu; Thu, 21 Apr 2005 19:46:29 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DOmJQ-0005oH-EN for ding@lists.math.uh.edu; Thu, 21 Apr 2005 19:46:28 -0500 Original-Received: from washington.hostforweb.net ([69.61.11.2]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DOmJL-0002HB-00 for ; Fri, 22 Apr 2005 02:46:23 +0200 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.44) id 1DOmJI-0005UO-JW for ding@gnus.org; Thu, 21 Apr 2005 20:46:20 -0400 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:8wALne6tpEPvCOB1071dcG4/BMc= X-Hashcash: 1:20:050422:ding@gnus.org::erV6+MeTelDOSeAG:0000257V X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60188 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60188 >>>>> In Karl Kleinpaste wrote: > Katsumi Yamaoka writes: >> AFAIK, message-*-actions were all buffer-local over nine years. > No. I have 5.10.3 lying around, and its message.el, with mod date of > 14 June 2003, makes these local (for purpose of adding some one-time > eval forms), but does not nil them out. So the effect is that one's > preferred actions are combined with the one-time forms. > I just tried running that 5.10.3, and it works as expected other than > that it, too, deletes the wrong frame. This is evidently an Xemacs > 21.5 difficulty. I see. I found out Lars had changed `message-mode' so as to set those variables as nil. 2003-10-16 Lars Magne Ingebrigtsen * message.el (message-inserted-headers): New variable. (message-mode): Make local. (message-mode): Set all the local action variables to nil. I guess Lars considered there may be those who invoke the message-mail command from the message-mode buffer. In that case, message-*-actions will get excessive (or possibly harmful) values in the second message buffer. I think it can be improved as follows: (set (make-local-variable 'message-*-actions) (default-value 'message-*-actions)) I don't think we should do that because the doc-strings for those variables don't begin with "*", though.