From: Richard M. Stallman Date: Wed, 15 Jun 1994 22:16:04 +0000 (+0000) Subject: (mail-send-hook): Add defvar. X-Git-Tag: emacs-19.34~7936 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=da5667c68aa0fbc9997ff933021a2abc772bf706;p=emacs.git (mail-send-hook): Add defvar. (mail-send): Run mail-send-hook before the `Sending...' message. --- diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index d613a7588b8..5c192cb76a4 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@ -154,6 +154,9 @@ actually occur.") (setq mail-mode-syntax-table (copy-syntax-table text-mode-syntax-table)) (modify-syntax-entry ?% ". " mail-mode-syntax-table))) +(defvar mail-send-hook nil + "Normal hook run before sending mail, in Mail mode.") + (defun mail-setup (to subject in-reply-to cc replybuffer actions) (if (eq mail-aliases t) (progn @@ -353,8 +356,8 @@ the user from the mailer." (or (buffer-modified-p) (y-or-n-p "Message already sent; resend? "))) (progn - (message "Sending...") (run-hooks 'mail-send-hook) + (message "Sending...") (funcall send-mail-function) ;; Now perform actions on successful sending. (while mail-send-actions