aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-15 22:16:04 +0000
committerRichard M. Stallman1994-06-15 22:16:04 +0000
commitda5667c68aa0fbc9997ff933021a2abc772bf706 (patch)
tree668028a7b7866a252729c086ecb0d49ba291a2e3 /lisp
parentef2a22d0bba8a4de98a52ebddae092632fb5c594 (diff)
downloademacs-da5667c68aa0fbc9997ff933021a2abc772bf706.tar.gz
emacs-da5667c68aa0fbc9997ff933021a2abc772bf706.zip
(mail-send-hook): Add defvar.
(mail-send): Run mail-send-hook before the `Sending...' message.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/sendmail.el5
1 files changed, 4 insertions, 1 deletions
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.")
154 (setq mail-mode-syntax-table (copy-syntax-table text-mode-syntax-table)) 154 (setq mail-mode-syntax-table (copy-syntax-table text-mode-syntax-table))
155 (modify-syntax-entry ?% ". " mail-mode-syntax-table))) 155 (modify-syntax-entry ?% ". " mail-mode-syntax-table)))
156 156
157(defvar mail-send-hook nil
158 "Normal hook run before sending mail, in Mail mode.")
159
157(defun mail-setup (to subject in-reply-to cc replybuffer actions) 160(defun mail-setup (to subject in-reply-to cc replybuffer actions)
158 (if (eq mail-aliases t) 161 (if (eq mail-aliases t)
159 (progn 162 (progn
@@ -353,8 +356,8 @@ the user from the mailer."
353 (or (buffer-modified-p) 356 (or (buffer-modified-p)
354 (y-or-n-p "Message already sent; resend? "))) 357 (y-or-n-p "Message already sent; resend? ")))
355 (progn 358 (progn
356 (message "Sending...")
357 (run-hooks 'mail-send-hook) 359 (run-hooks 'mail-send-hook)
360 (message "Sending...")
358 (funcall send-mail-function) 361 (funcall send-mail-function)
359 ;; Now perform actions on successful sending. 362 ;; Now perform actions on successful sending.
360 (while mail-send-actions 363 (while mail-send-actions