From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Mail mode and message mode hooks Date: Fri, 04 Dec 2009 23:55:28 -0500 Message-ID: References: <871vjfwi6a.fsf@stupidchicken.com> <87skbqm6q3.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259988956 29056 80.91.229.12 (5 Dec 2009 04:55:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 04:55:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 05 05:55:49 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 1NGmgO-0007gQ-Nk for ged-emacs-devel@m.gmane.org; Sat, 05 Dec 2009 05:55:49 +0100 Original-Received: from localhost ([127.0.0.1]:58123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGmgO-0005a1-Go for ged-emacs-devel@m.gmane.org; Fri, 04 Dec 2009 23:55:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGmg9-0005SO-Hy for emacs-devel@gnu.org; Fri, 04 Dec 2009 23:55:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGmg5-0005Q9-Qh for emacs-devel@gnu.org; Fri, 04 Dec 2009 23:55:33 -0500 Original-Received: from [199.232.76.173] (port=39179 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGmg5-0005Q2-KP for emacs-devel@gnu.org; Fri, 04 Dec 2009 23:55:29 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:33734 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGmg5-0005EJ-OF for emacs-devel@gnu.org; Fri, 04 Dec 2009 23:55:29 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAEB2GUtFpZ7i/2dsb2JhbACBTNQyhDMEihw X-IronPort-AV: E=Sophos;i="4.47,346,1257138000"; d="scan'208";a="50733458" Original-Received: from 69-165-158-226.dsl.teksavvy.com (HELO ceviche.home) ([69.165.158.226]) by ironport2-out.pppoe.ca with ESMTP; 04 Dec 2009 23:55:28 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 9C2517026A; Fri, 4 Dec 2009 23:55:28 -0500 (EST) In-Reply-To: <87skbqm6q3.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 04 Dec 2009 22:37:24 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:118288 Archived-At: >>> 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? >>=20 >> I have no idea what kind of code people may run from such hooks. >>=20 >> The main thing to remember: the old behavior is just one setq away. >>=20 >> And as a strong supporter of message-mode, I see nothing wrong with >> people preferring mail-mode for themselves. Heck, I've been living with >> exactly such a setq in my .emacs for many years now because I preferred >> message-mode over the default mail-mode. >>=20 >> So there is really no need to work that hard at making message-mode work >> like mail-mode. > 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. I think this is a small price to pay compared to the overall benefit of properly supporting arbitrary chars and coding-systems, and other MIME features. Maybe we should try and add some ad-hoc checks =E0 la bad-package-check to catch the few known problematic cases. Stefan