[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail mode and message mode hooks

From: Chong Yidong
Subject: Re: Mail mode and message mode hooks
Date: Tue, 01 Dec 2009 14:07:39 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Chong Yidong <address@hidden> writes:

> So, the message-*-hook variables should probably be aliased to the
> mail-*-hook variables.

On further thought, there is a problem with this.  If we defvaralias
(e.g.) message-send-hook in message.el, any (add-hook message-send-hook foo)
statement in a user's .emacs file will be overwritten when message.el is

One solution is to make message-mode run the mail-*-hooks explicitly,
but this may conflict with user customizations that set up both hooks

  (add-hook 'message-send-hook 'foo)
  (add-hook 'mail-send-hook 'foo)

which is not outside the realm of probability.  In this case, running
both hooks is clearly not what we want.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]