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: Mail mode and message mode hooks Date: Mon, 30 Nov 2009 21:18:37 -0500 Message-ID: <871vjfwi6a.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 1259633934 8073 80.91.229.12 (1 Dec 2009 02:18:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Dec 2009 02:18:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 01 03:18:47 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 1NFIKF-0001W8-LE for ged-emacs-devel@m.gmane.org; Tue, 01 Dec 2009 03:18:47 +0100 Original-Received: from localhost ([127.0.0.1]:49536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFIKE-0001g9-Rp for ged-emacs-devel@m.gmane.org; Mon, 30 Nov 2009 21:18:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFIKA-0001fw-CM for emacs-devel@gnu.org; Mon, 30 Nov 2009 21:18:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFIK6-0001fU-SZ for emacs-devel@gnu.org; Mon, 30 Nov 2009 21:18:42 -0500 Original-Received: from [199.232.76.173] (port=34844 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFIK6-0001fR-Q0 for emacs-devel@gnu.org; Mon, 30 Nov 2009 21:18:38 -0500 Original-Received: from pantheon-po42.its.yale.edu ([130.132.50.101]:38705) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFIK6-0005jW-KR for emacs-devel@gnu.org; Mon, 30 Nov 2009 21:18:38 -0500 Original-Received: from furry (dhcp128036014216.central.yale.edu [128.36.14.216]) (authenticated bits=0) by pantheon-po42.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nB12IbmN017175 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 30 Nov 2009 21:18:37 -0500 Original-Received: by furry (Postfix, from userid 1000) id AA6F0C071; Mon, 30 Nov 2009 21:18:37 -0500 (EST) 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:118015 Archived-At: I'd like to hear some opinions on how to treat the mail mode and message mode hooks, given that message-mode is to be the default. As it stands, anyone using feedmail will likely suffer breakage in upgrading to Emacs 23.2, as shown in bug#3942. The feedmail package relies on hooks, and contains documentation like this: feedmail-mail-send-hook-splitter is a Lisp function in `feedmail.el'. (feedmail-mail-send-hook-splitter) Facilitate dividing `mail-send-hook' things into queued and immediate cases. If you have `mail-send-hook' functions that should only be called for sending/ queueing messages or only be called for the sending of queued messages, this is for you. Add this function to `mail-send-hook' with something like this: (add-hook 'mail-send-hook 'feedmail-mail-send-hook-splitter) So, the message-*-hook variables should probably be aliased to the mail-*-hook variables. One problem that I can see with this is that code intended for one mode may not work properly for the other mode, but I can't think of any concrete examples. Any thoughts?