From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Mail mode vs message mode Date: Tue, 17 Nov 2009 11:51:56 -0500 Message-ID: <876399p00j.fsf@stupidchicken.com> References: <87639beb4n.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258476927 8889 80.91.229.12 (17 Nov 2009 16:55:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 16:55:27 +0000 (UTC) To: emacs-devel@gnu.org, ding@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 17 17:55:20 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NARKi-0001fs-FC for ged-emacs-devel@m.gmane.org; Tue, 17 Nov 2009 17:55:12 +0100 Original-Received: from localhost ([127.0.0.1]:42425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NARKi-0006Ub-3B for ged-emacs-devel@m.gmane.org; Tue, 17 Nov 2009 11:55:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NARHh-00051j-I8 for emacs-devel@gnu.org; Tue, 17 Nov 2009 11:52:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NARHb-0004xG-0t for emacs-devel@gnu.org; Tue, 17 Nov 2009 11:52:03 -0500 Original-Received: from [199.232.76.173] (port=38559 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NARHa-0004x6-RO for emacs-devel@gnu.org; Tue, 17 Nov 2009 11:51:58 -0500 Original-Received: from pantheon-po24.its.yale.edu ([130.132.50.118]:47389) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NARHa-00039G-7z for emacs-devel@gnu.org; Tue, 17 Nov 2009 11:51:58 -0500 Original-Received: from furry (dhcp128036014244.central.yale.edu [128.36.14.244]) (authenticated bits=0) by pantheon-po24.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nAHGpusJ011182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 17 Nov 2009 11:51:56 -0500 Original-Received: by furry (Postfix, from userid 1000) id 2B37CC071; Tue, 17 Nov 2009 11:51:56 -0500 (EST) In-Reply-To: <87639beb4n.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 15 Nov 2009 16:22:48 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117103 Archived-At: Chong Yidong writes: > 1. Variables that are straightfowardly duplicated by message-mode. > These variables should be either made into variable aliases (assuming > no one would ever want to have different behaviors between > message-mode and mail-mode): > > mail-from-style message-from-style > mail-envelope-from message-envelope-from > mail-interactive message-interactive > mail-yank-prefix message-yank-prefix > mail-signature message-signature > mail-signature-file message-signature-file > mail-default-headers message-default-headers > mail-indentation-spaces message-indentation-spaces > mail-mailer-swallows-blank-line message-mailer-swallows-blank-line After thinking about this some more, I think using defvaralias is a bad idea. Would anyone object to setting the default values for the message-mode variables to the corresponding mail-mode variables? e.g., (defcustom message-from-style (if (featurep 'xemacs) 'angles mail-from-style) ....) > 2. Hook variables. I am not sure what to do about this, but the switch > has bitten at least one use (Bug#3942). Maybe we should make these > variable aliases too: > > mail-mode-hook message-mode-hook > mail-citation-hook message-citation-hook > mail-setup-hook message-setup-hook > mail-send-hook message-send-hook Any objections to adding a new user option message-run-mail-hooks, which, if non-nil, causes message mode to run the corresponding mail hooks as well?