summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-07-13 20:18:05 +0000
committerRichard M. Stallman <rms@gnu.org>1993-07-13 20:18:05 +0000
commit20d5cbd409735c011edff8d6dd8c777de45f413b (patch)
treeca1cf122b5a62133ff0b51e4c09ea2ea3cab6bf7
parentf70dd6044fc9dd527af2c19ecd6ba1d18a613a58 (diff)
downloademacs-20d5cbd409735c011edff8d6dd8c777de45f413b.tar.gz
(mail-bury): New function.
(mail-send-and-exit): Call mail-bury. (mail-dont-send): New command, with menu bar binding.
-rw-r--r--lisp/mail/sendmail.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index daf3d329135..9fb20e9d810 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -248,6 +248,9 @@ C-c C-v mail-sent-via (add a sent-via field for each To or CC)."
(define-key mail-mode-map [menu-bar mail signature]
'("Insert Signature" . mail-signature))
+(define-key mail-mode-map [menu-bar mail cancel]
+ '("Cancel" . mail-dont-send))
+
(define-key mail-mode-map [menu-bar mail send-stay]
'("Send, Keep Editing" . mail-send))
@@ -283,6 +286,16 @@ C-c C-v mail-sent-via (add a sent-via field for each To or CC)."
Prefix arg means don't delete this window."
(interactive "P")
(mail-send)
+ (mail-bury arg))
+
+(defun mail-dont-send (arg)
+ "Don't send the message you have been editing.
+Prefix arg means don't delete this window."
+ (interactive "P")
+ (mail-bury arg))
+
+(defun mail-bury (arg)
+ "Bury this mail buffer."
(let ((newbuf (other-buffer (current-buffer))))
(bury-buffer (current-buffer))
(if (and (not arg)