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 and message mode hooks Date: Sun, 06 Dec 2009 18:10:18 -0500 Message-ID: <87ljhfk8bp.fsf@stupidchicken.com> References: <871vjfwi6a.fsf@stupidchicken.com> <87skbqm6q3.fsf@stupidchicken.com> <15483.128.165.0.81.1260038051.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260141106 29740 80.91.229.12 (6 Dec 2009 23:11:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2009 23:11:46 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 07 00:11:39 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 1NHQFM-0007Rp-Uk for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2009 00:10:33 +0100 Original-Received: from localhost ([127.0.0.1]:58748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHQFM-0003kC-Jd for ged-emacs-devel@m.gmane.org; Sun, 06 Dec 2009 18:10:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHQFF-0003iZ-Sb for emacs-devel@gnu.org; Sun, 06 Dec 2009 18:10:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHQFA-0003ez-D4 for emacs-devel@gnu.org; Sun, 06 Dec 2009 18:10:24 -0500 Original-Received: from [199.232.76.173] (port=48015 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHQFA-0003es-7Z for emacs-devel@gnu.org; Sun, 06 Dec 2009 18:10:20 -0500 Original-Received: from pantheon-po38.its.yale.edu ([130.132.50.97]:58141) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHQFA-0002s3-BH for emacs-devel@gnu.org; Sun, 06 Dec 2009 18:10:20 -0500 Original-Received: from furry (adsl-99-58-202-243.dsl.wlfrct.sbcglobal.net [99.58.202.243]) (authenticated bits=0) by pantheon-po38.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nB6NAIeR012157 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 6 Dec 2009 18:10:19 -0500 Original-Received: by furry (Postfix, from userid 1000) id 9E687C071; Sun, 6 Dec 2009 18:10:18 -0500 (EST) In-Reply-To: <15483.128.165.0.81.1260038051.squirrel@webmail.lanl.gov> (Davis Herring's message of "Sat, 5 Dec 2009 10:34:11 -0800 (PST)") 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:118349 Archived-At: "Davis Herring" writes: >> I am also a supporter of message-mode. But a user moving from Emacs >> 23.1 to Emacs 23.2---a minor version upgrade!---should not experience >> breakage. And as the feedmail example shows, there is at least one >> not-unreasonable setup that currently does break. > > Does my suggestion not help here? The merge of hook values could even > check for functions registered on each. Even if the user loads both (so > the merge and defvaralias have already happened) and then tries to add the > same function to each, she will only get one copy. It's workable, but not very elegant. Another idea I had is to change compose-mail to check for hook duplication, and pop up a warning window telling the user that the default mail-user-agent has changed.