diff options
| author | Glenn Morris | 2009-02-24 03:31:39 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-24 03:31:39 +0000 |
| commit | 433c16523a52d5a64aab71723a9fcbc6162f7de8 (patch) | |
| tree | 3b672f12fa692f5374676996dbb04f8db54056fb | |
| parent | af1d43f946fad28f5d53bafb0d5687b8cc95810d (diff) | |
| download | emacs-433c16523a52d5a64aab71723a9fcbc6162f7de8.tar.gz emacs-433c16523a52d5a64aab71723a9fcbc6162f7de8.zip | |
(rmail): Don't show a message if rmail-get-new-mail already did. (Bug#2440)
(rmail-quit): Don't swap buffers. (Bug#2441)
(rmail-list-to-menu): Don't globally bind `name'.
| -rw-r--r-- | lisp/mail/rmail.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index c3d02ed9df6..1e2131cccad 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -875,10 +875,11 @@ If `rmail-display-summary' is non-nil, make a summary for this RMAIL file." | |||
| 875 | (unwind-protect | 875 | (unwind-protect |
| 876 | ;; Only get new mail when there is not a file name argument. | 876 | ;; Only get new mail when there is not a file name argument. |
| 877 | (unless file-name-arg | 877 | (unless file-name-arg |
| 878 | (rmail-get-new-mail)) | 878 | (setq msg-shown (rmail-get-new-mail))) |
| 879 | (progn | 879 | (progn |
| 880 | (set-buffer mail-buf) | 880 | (set-buffer mail-buf) |
| 881 | (rmail-show-message (rmail-first-unseen-message)) | 881 | (or msg-shown |
| 882 | (rmail-show-message (rmail-first-unseen-message))) | ||
| 882 | (if rmail-display-summary (rmail-summary)) | 883 | (if rmail-display-summary (rmail-summary)) |
| 883 | (rmail-construct-io-menu) | 884 | (rmail-construct-io-menu) |
| 884 | (if run-mail-hook | 885 | (if run-mail-hook |
| @@ -1419,7 +1420,6 @@ Hook `rmail-quit-hook' is run after expunging." | |||
| 1419 | (interactive) | 1420 | (interactive) |
| 1420 | (set-buffer rmail-buffer) | 1421 | (set-buffer rmail-buffer) |
| 1421 | (rmail-expunge t) | 1422 | (rmail-expunge t) |
| 1422 | (rmail-swap-buffers-maybe) | ||
| 1423 | (save-buffer) | 1423 | (save-buffer) |
| 1424 | (when (boundp 'rmail-quit-hook) | 1424 | (when (boundp 'rmail-quit-hook) |
| 1425 | (run-hooks 'rmail-quit-hook)) | 1425 | (run-hooks 'rmail-quit-hook)) |
| @@ -1499,7 +1499,8 @@ The duplicate copy goes into the Rmail file just after the original." | |||
| 1499 | (sort files 'string<)))) | 1499 | (sort files 'string<)))) |
| 1500 | 1500 | ||
| 1501 | (defun rmail-list-to-menu (menu-name l action &optional full-name) | 1501 | (defun rmail-list-to-menu (menu-name l action &optional full-name) |
| 1502 | (let ((menu (make-sparse-keymap menu-name))) | 1502 | (let ((menu (make-sparse-keymap menu-name)) |
| 1503 | name) | ||
| 1503 | (mapc | 1504 | (mapc |
| 1504 | (lambda (item) | 1505 | (lambda (item) |
| 1505 | (let (command) | 1506 | (let (command) |
| @@ -3226,6 +3227,8 @@ See also user-option `rmail-confirm-expunge'." | |||
| 3226 | replybuffer sendactions same-window others) | 3227 | replybuffer sendactions same-window others) |
| 3227 | (let (yank-action) | 3228 | (let (yank-action) |
| 3228 | (if replybuffer | 3229 | (if replybuffer |
| 3230 | ;; The function used here must behave like insert-buffer wrt | ||
| 3231 | ;; point and mark (see doc of sc-cite-original). | ||
| 3229 | (setq yank-action (list 'insert-buffer replybuffer))) | 3232 | (setq yank-action (list 'insert-buffer replybuffer))) |
| 3230 | (setq others (cons (cons "cc" cc) others)) | 3233 | (setq others (cons (cons "cc" cc) others)) |
| 3231 | (setq others (cons (cons "in-reply-to" in-reply-to) others)) | 3234 | (setq others (cons (cons "in-reply-to" in-reply-to) others)) |