diff options
| -rw-r--r-- | lisp/mail/sendmail.el | 13 |
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)." | |||
| 248 | (define-key mail-mode-map [menu-bar mail signature] | 248 | (define-key mail-mode-map [menu-bar mail signature] |
| 249 | '("Insert Signature" . mail-signature)) | 249 | '("Insert Signature" . mail-signature)) |
| 250 | 250 | ||
| 251 | (define-key mail-mode-map [menu-bar mail cancel] | ||
| 252 | '("Cancel" . mail-dont-send)) | ||
| 253 | |||
| 251 | (define-key mail-mode-map [menu-bar mail send-stay] | 254 | (define-key mail-mode-map [menu-bar mail send-stay] |
| 252 | '("Send, Keep Editing" . mail-send)) | 255 | '("Send, Keep Editing" . mail-send)) |
| 253 | 256 | ||
| @@ -283,6 +286,16 @@ C-c C-v mail-sent-via (add a sent-via field for each To or CC)." | |||
| 283 | Prefix arg means don't delete this window." | 286 | Prefix arg means don't delete this window." |
| 284 | (interactive "P") | 287 | (interactive "P") |
| 285 | (mail-send) | 288 | (mail-send) |
| 289 | (mail-bury arg)) | ||
| 290 | |||
| 291 | (defun mail-dont-send (arg) | ||
| 292 | "Don't send the message you have been editing. | ||
| 293 | Prefix arg means don't delete this window." | ||
| 294 | (interactive "P") | ||
| 295 | (mail-bury arg)) | ||
| 296 | |||
| 297 | (defun mail-bury (arg) | ||
| 298 | "Bury this mail buffer." | ||
| 286 | (let ((newbuf (other-buffer (current-buffer)))) | 299 | (let ((newbuf (other-buffer (current-buffer)))) |
| 287 | (bury-buffer (current-buffer)) | 300 | (bury-buffer (current-buffer)) |
| 288 | (if (and (not arg) | 301 | (if (and (not arg) |