From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: Mail mode and message mode hooks
Date: Mon, 30 Nov 2009 22:40:20 -0500 [thread overview]
Message-ID: <jwvmy234bim.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <871vjfwi6a.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 30 Nov 2009 21:18:37 -0500")
> So, the message-*-hook variables should probably be aliased to the
> mail-*-hook variables.
Yes. Generally, message-mode should be considered as a derived-mode of
mail-mode, I think. On this basis, it would make sense to run mail
mail-*-hook.
> 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?
I have no idea what kind of code people may run from such hooks.
The main thing to remember: the old behavior is just one setq away.
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.
So there is really no need to work that hard at making message-mode work
like mail-mode. Such a thing would only be needed if we were to drop
mail-mode in favor of message-mode, whereas we're just changing
the default.
Changing defaults is not that big a deal. We've been doing it for
decades. Every time some people bitch, of course, but as long as it is
an improvement for the average user, the transient inconvenience is
nothing to worry about.
Stefan
next prev parent reply other threads:[~2009-12-01 3:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-01 2:18 Mail mode and message mode hooks Chong Yidong
2009-12-01 3:40 ` Stefan Monnier [this message]
2009-12-05 3:37 ` Chong Yidong
2009-12-05 4:55 ` Stefan Monnier
2009-12-05 9:22 ` Eli Zaretskii
2009-12-05 18:34 ` Davis Herring
2009-12-06 23:10 ` Chong Yidong
2009-12-06 23:52 ` Chong Yidong
2009-12-07 2:16 ` Stefan Monnier
2009-12-01 19:07 ` Chong Yidong
2009-12-01 20:41 ` Davis Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvmy234bim.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).