From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60182 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: message-add-action problem Date: Thu, 21 Apr 2005 15:20:58 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1114064512 9263 80.91.229.2 (21 Apr 2005 06:21:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2005 06:21:52 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M8709@lists.math.uh.edu Thu Apr 21 08:21:48 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOV42-0008JP-7q for ding-account@gmane.org; Thu, 21 Apr 2005 08:21:26 +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 1DOV44-0002ys-00; Thu, 21 Apr 2005 01:21:28 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DOV3q-0002yk-00 for ding@lists.math.uh.edu; Thu, 21 Apr 2005 01:21:14 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DOV3n-00060d-80 for ding@lists.math.uh.edu; Thu, 21 Apr 2005 01:21:11 -0500 Original-Received: from washington.hostforweb.net ([69.61.11.2]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DOV3m-000525-00 for ; Thu, 21 Apr 2005 08:21:10 +0200 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.44) id 1DOV3o-0002t4-N4; Thu, 21 Apr 2005 02:21:13 -0400 Original-To: Karl Kleinpaste 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) XEmacs/21.5-b20 (linux) Cancel-Lock: sha1:TTY4vPOqVBIWP91MBgmS7W0//18= X-Hashcash: 1:20:050421:karl@charcoal.com::i6RWqqDDZQFxYuB2:000000000000000000000000000000000000000000003onq X-Hashcash: 1:20:050421:ding@gnus.org::Eas94B9tD85jn+wR:00002hwv 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:60182 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60182 >>>>> In Karl Kleinpaste wrote: > No Gnus v0.3, XEmacs 21.5.20. > For a very long time, I've been doing message composition in a separate > frame, using code I got from someone (unremembered, regrets) on this list: > ; destroy the composition frame on any kind of exit from composition. > (defun delete-frame-unless-tty () > (if (equal (console-type) 'x) > (delete-frame))) > (message-add-action 'delete-frame-unless-tty 'exit 'postpone 'kill) [...] > However, since I upgraded to No v0.3, my message composition frames > are not deleted on send/kill/postpone any more. > message-mode's define-derived-mode in message.el is destroying the > global value of message-*-actions by making them all locals and > aggressively setting them to nil. This can't possibly be correct, > unless these variables were never meant to be user-accessible. That > was not my understanding. AFAIK, message-*-actions were all buffer-local over nine years. > When I tweak message-mode to re-assert those variables' values in the > make-local, the basic idea seems to come back...except that it's my > main Gnus frame that gets deleted, leaving the composition frame, > exactly the wrong effect. (But that frame now shows *Summary*.) So, that is just what we have to do. I'm sorry not to have time to analyze your code, but I'm satisfied with mine: ftp://ftp.jpl.org/pub/elisp/message-multiple-frames.el.gz or http://www.jpl.org/ftp/pub/elisp/message-multiple-frames.el.gz It also might be incomplete, though.