diff options
| author | Richard M. Stallman | 1993-07-13 20:18:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-13 20:18:05 +0000 |
| commit | 1b6bb250a6f41bd515a45d4437b1892ca88aa203 (patch) | |
| tree | 959ccbb6249c05c916a4904b4513215ec1ee25f9 | |
| parent | e1efaae9a234c1888c0844df0de7cb4a10cfa7a6 (diff) | |
| download | emacs-1b6bb250a6f41bd515a45d4437b1892ca88aa203.tar.gz emacs-1b6bb250a6f41bd515a45d4437b1892ca88aa203.zip | |
(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.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) |