diff options
| author | Richard M. Stallman | 2011-06-23 13:03:59 -0400 |
|---|---|---|
| committer | Richard M. Stallman | 2011-06-23 13:03:59 -0400 |
| commit | 8050daa1d0ce09b581fa7c6a94be57d3ecdead3c (patch) | |
| tree | cb832d399ae692bd8dec588b17721b64d17e9040 | |
| parent | 273d2baf9bfe78df24047666b7e6cdb52e44e66d (diff) | |
| download | emacs-8050daa1d0ce09b581fa7c6a94be57d3ecdead3c.tar.gz emacs-8050daa1d0ce09b581fa7c6a94be57d3ecdead3c.zip | |
Work with changes in mail-bury.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 029003c0429..c34ccb6e577 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -7,6 +7,9 @@ | |||
| 7 | 7 | ||
| 8 | * mail/rmail.el (rmail-retry-ignored-headers): Add message-id. | 8 | * mail/rmail.el (rmail-retry-ignored-headers): Add message-id. |
| 9 | (rmail-show-message-1): Preserve buffer modified flag. | 9 | (rmail-show-message-1): Preserve buffer modified flag. |
| 10 | (rmail-start-mail): Don't specify use of rmail-mail-return; | ||
| 11 | that's done by mail-bury now. | ||
| 12 | (rmail-mail-return): Handle arg NEWBUF. | ||
| 10 | 13 | ||
| 11 | 2011-06-23 Michael Albinus <michael.albinus@gmx.de> | 14 | 2011-06-23 Michael Albinus <michael.albinus@gmx.de> |
| 12 | 15 | ||
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 33f87d634a3..a0156aeb750 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -3458,15 +3458,15 @@ does not pop any summary buffer." | |||
| 3458 | (if (stringp subject) (setq subject (rfc2047-decode-string subject))) | 3458 | (if (stringp subject) (setq subject (rfc2047-decode-string subject))) |
| 3459 | (prog1 | 3459 | (prog1 |
| 3460 | (compose-mail to subject other-headers noerase | 3460 | (compose-mail to subject other-headers noerase |
| 3461 | switch-function yank-action sendactions | 3461 | switch-function yank-action sendactions) |
| 3462 | '(rmail-mail-return)) | ||
| 3463 | (if (eq switch-function 'switch-to-buffer-other-frame) | 3462 | (if (eq switch-function 'switch-to-buffer-other-frame) |
| 3464 | ;; This is not a standard frame parameter; nothing except | 3463 | ;; This is not a standard frame parameter; nothing except |
| 3465 | ;; sendmail.el looks at it. | 3464 | ;; sendmail.el looks at it. |
| 3466 | (modify-frame-parameters (selected-frame) | 3465 | (modify-frame-parameters (selected-frame) |
| 3467 | '((mail-dedicated-frame . t))))))) | 3466 | '((mail-dedicated-frame . t))))))) |
| 3468 | 3467 | ||
| 3469 | (defun rmail-mail-return () | 3468 | (defun rmail-mail-return (&optional newbuf) |
| 3469 | "NEWBUF is a buffer to switch to." | ||
| 3470 | (cond | 3470 | (cond |
| 3471 | ;; If there is only one visible frame with no special handling, | 3471 | ;; If there is only one visible frame with no special handling, |
| 3472 | ;; consider deleting the mail window to return to Rmail. | 3472 | ;; consider deleting the mail window to return to Rmail. |
| @@ -3491,7 +3491,8 @@ does not pop any summary buffer." | |||
| 3491 | (if rmail-flag | 3491 | (if rmail-flag |
| 3492 | ;; If the Rmail buffer has a summary, show that. | 3492 | ;; If the Rmail buffer has a summary, show that. |
| 3493 | (if summary-buffer (switch-to-buffer summary-buffer) | 3493 | (if summary-buffer (switch-to-buffer summary-buffer) |
| 3494 | (delete-window))))) | 3494 | (delete-window)) |
| 3495 | (switch-to-buffer newbuf)))) | ||
| 3495 | ;; If the frame was probably made for this buffer, the user | 3496 | ;; If the frame was probably made for this buffer, the user |
| 3496 | ;; probably wants to delete it now. | 3497 | ;; probably wants to delete it now. |
| 3497 | ((display-multi-frame-p) | 3498 | ((display-multi-frame-p) |