emacs-devel
[Top][All Lists]
Advanced

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

Re: Mail mode vs message mode


From: Chong Yidong
Subject: Re: Mail mode vs message mode
Date: Tue, 17 Nov 2009 11:51:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Chong Yidong <address@hidden> writes:

> 1. Variables that are straightfowardly duplicated by message-mode.
>    These variables should be either made into variable aliases (assuming
>    no one would ever want to have different behaviors between
>    message-mode and mail-mode):
>
>    mail-from-style      message-from-style
>    mail-envelope-from   message-envelope-from
>    mail-interactive     message-interactive
>    mail-yank-prefix     message-yank-prefix
>    mail-signature       message-signature
>    mail-signature-file  message-signature-file
>    mail-default-headers message-default-headers
>    mail-indentation-spaces         message-indentation-spaces
>    mail-mailer-swallows-blank-line message-mailer-swallows-blank-line

After thinking about this some more, I think using defvaralias is a bad
idea.

Would anyone object to setting the default values for the message-mode
variables to the corresponding mail-mode variables? e.g.,

(defcustom message-from-style
    (if (featurep 'xemacs) 'angles mail-from-style)
    ....)

> 2. Hook variables.  I am not sure what to do about this, but the switch
>    has bitten at least one use (Bug#3942).  Maybe we should make these
>    variable aliases too:
>
>    mail-mode-hook     message-mode-hook
>    mail-citation-hook message-citation-hook
>    mail-setup-hook    message-setup-hook
>    mail-send-hook     message-send-hook

Any objections to adding a new user option message-run-mail-hooks,
which, if non-nil, causes message mode to run the corresponding mail
hooks as well?




reply via email to

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