unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: emacs-devel@gnu.org, ding@gnu.org
Subject: Re: Mail mode vs message mode
Date: Tue, 17 Nov 2009 11:51:56 -0500	[thread overview]
Message-ID: <876399p00j.fsf@stupidchicken.com> (raw)
In-Reply-To: <87639beb4n.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 15 Nov 2009 16:22:48 -0500")

Chong Yidong <cyd@stupidchicken.com> 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?




  parent reply	other threads:[~2009-11-17 16:51 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-15 21:22 Mail mode vs message mode Chong Yidong
2009-11-15 22:55 ` Xavier Maillard
2009-11-16  2:53   ` Stefan Monnier
2009-11-16  9:56     ` Xavier Maillard
2009-11-17  1:14       ` Miles Bader
2009-11-17 22:59         ` Xavier Maillard
2009-11-16  4:57   ` Miles Bader
2009-11-17 16:51 ` Chong Yidong [this message]
2009-11-17 21:10   ` Reiner Steib
2009-11-18 16:53     ` Chong Yidong
2009-11-18 19:20       ` Reiner Steib
2009-11-19 14:56         ` Teemu Likonen
2009-11-19 16:53         ` Chong Yidong
2009-11-20  0:07           ` Katsumi Yamaoka
2009-11-22 15:55             ` Reiner Steib
2009-11-24  9:19               ` Katsumi Yamaoka
2009-11-25 21:40                 ` Reiner Steib
2009-11-25 23:02                   ` Stefan Monnier
2009-11-25 23:13                     ` Chong Yidong
2009-11-26  1:27                       ` Stefan Monnier
2009-11-26  1:43                         ` Miles Bader
2009-11-28 13:47                           ` Stefan Monnier
2009-11-27  8:41                   ` Katsumi Yamaoka
2009-11-27 14:51                     ` Chong Yidong
2009-11-29  0:32                       ` Katsumi Yamaoka
2009-11-29 18:49                         ` Chong Yidong
2009-11-30  0:00                           ` Katsumi Yamaoka
2009-11-22 15:55           ` Reiner Steib

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=876399p00j.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=ding@gnu.org \
    --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).