all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Mail mode and message mode hooks
@ 2009-12-01  2:18 Chong Yidong
  2009-12-01  3:40 ` Stefan Monnier
  2009-12-01 19:07 ` Chong Yidong
  0 siblings, 2 replies; 11+ messages in thread
From: Chong Yidong @ 2009-12-01  2:18 UTC (permalink / raw
  To: emacs-devel

I'd like to hear some opinions on how to treat the mail mode and message
mode hooks, given that message-mode is to be the default.

As it stands, anyone using feedmail will likely suffer breakage in
upgrading to Emacs 23.2, as shown in bug#3942.  The feedmail package
relies on hooks, and contains documentation like this:

   feedmail-mail-send-hook-splitter is a Lisp function in `feedmail.el'.

   (feedmail-mail-send-hook-splitter)

   Facilitate dividing `mail-send-hook' things into queued and immediate
   cases.  If you have `mail-send-hook' functions that should only be
   called for sending/ queueing messages or only be called for the
   sending of queued messages, this is for you.  Add this function to
   `mail-send-hook' with something like this:

       (add-hook 'mail-send-hook 'feedmail-mail-send-hook-splitter)

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

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?




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-12-07  2:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-01  2:18 Mail mode and message mode hooks Chong Yidong
2009-12-01  3:40 ` Stefan Monnier
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.