# HG changeset patch # User Karl Heuer # Date 806022006 0 # Node ID 3cd5105aeb2b6b864a79c7e31dc04d9297fb3e95 # Parent ed4cc6931e88eedbec24c83c574a2a337e9ea11c (mail-setup-hook): New defvar. (mail): Doc fix. diff -r ed4cc6931e88 -r 3cd5105aeb2b lisp/mail/sendmail.el --- a/lisp/mail/sendmail.el Mon Jul 17 22:59:04 1995 +0000 +++ b/lisp/mail/sendmail.el Mon Jul 17 23:00:06 1995 +0000 @@ -88,6 +88,10 @@ the `Mail' or `mailx' program. This file need not actually exist.") +(defvar mail-setup-hook nil + "Normal hook, run each time a new outgoing mail message is initialized. +The function `mail-setup' runs this hook.") + (defvar mail-aliases t "Alist of mail address aliases, or t meaning should be initialized from your mail aliases file. @@ -929,8 +933,8 @@ If `mail-archive-file-name' is non-nil, an FCC field with that file name is inserted. -If `mail-setup-hook' is bound, its value is called with no arguments -after the message is initialized. It can add more default fields. +The normal hook `mail-setup-hook' is run after the message is +initialized. It can add more default fields to the message. When calling from a program, the first argument if non-nil says not to erase the existing contents of the `*mail*' buffer.