diff options
| author | Richard M. Stallman | 2009-03-22 14:51:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2009-03-22 14:51:17 +0000 |
| commit | 8882002ae54e5a6b0d0acc4aa83caa8b4491fc39 (patch) | |
| tree | e8b073da706bd208c643f099b461d9deb9ba4eca | |
| parent | 551fd0c448f83c8ca19f2ea192aad0b83c268d90 (diff) | |
| download | emacs-8882002ae54e5a6b0d0acc4aa83caa8b4491fc39.tar.gz emacs-8882002ae54e5a6b0d0acc4aa83caa8b4491fc39.zip | |
(rmail-expunge): Without DONT-SHOW, show the message even after
updating summary.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 31 |
2 files changed, 19 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 108cf01f152..01c01e10435 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | 2009-03-22 Richard M Stallman <rms@gnu.org> | 1 | 2009-03-22 Richard M Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * mail/rmail.el (rmail-expunge): Update summary buffer even if NO-SHOW. | 3 | * mail/rmail.el (rmail-expunge): Update summary buffer even if DONT-SHOW. |
| 4 | (rmail-expunge): Without DONT-SHOW, show the message even after | ||
| 5 | updating summary. | ||
| 4 | 6 | ||
| 5 | 2009-03-21 Jari Aalto <jari.aalto@cante.net> | 7 | 2009-03-21 Jari Aalto <jari.aalto@cante.net> |
| 6 | 8 | ||
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index f39f7bf4636..4dfb7c8a1a2 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -3265,25 +3265,26 @@ See also user-option `rmail-confirm-expunge'." | |||
| 3265 | (interactive) | 3265 | (interactive) |
| 3266 | (when (rmail-expunge-confirmed) | 3266 | (when (rmail-expunge-confirmed) |
| 3267 | (let ((was-deleted (rmail-message-deleted-p rmail-current-message)) | 3267 | (let ((was-deleted (rmail-message-deleted-p rmail-current-message)) |
| 3268 | (was-swapped (rmail-buffers-swapped-p)) | 3268 | (was-swapped (rmail-buffers-swapped-p))) |
| 3269 | (total rmail-total-messages)) | ||
| 3270 | (rmail-only-expunge t) | 3269 | (rmail-only-expunge t) |
| 3271 | (if dont-show | 3270 | (if dont-show |
| 3272 | ;; Do update the summary buffer, if any. | 3271 | ;; Do update the summary buffer, if any. |
| 3273 | (when (rmail-summary-exists) | 3272 | (let ((total rmail-total-messages)) |
| 3274 | (with-current-buffer rmail-summary-buffer | 3273 | (when (rmail-summary-exists) |
| 3275 | (let ((rmail-total-messages total)) | 3274 | (with-current-buffer rmail-summary-buffer |
| 3276 | (rmail-update-summary)))) | 3275 | (let ((rmail-total-messages total)) |
| 3276 | (rmail-update-summary))))) | ||
| 3277 | ;; Update the summary and show it. | ||
| 3277 | (if (rmail-summary-exists) | 3278 | (if (rmail-summary-exists) |
| 3278 | (rmail-select-summary (rmail-update-summary)) | 3279 | (rmail-select-summary (rmail-update-summary))) |
| 3279 | ;; If we expunged the current message, a new one is current now, | 3280 | ;; If we expunged the current message, a new one is current now, |
| 3280 | ;; so show it. If we weren't showing a message, show it. | 3281 | ;; so show it. If we weren't showing a message, show it. |
| 3281 | (if (or was-deleted (not was-swapped)) | 3282 | (if (or was-deleted (not was-swapped)) |
| 3282 | (rmail-show-message-1 rmail-current-message) | 3283 | (rmail-show-message-1 rmail-current-message) |
| 3283 | ;; Show the same message that was being shown before. | 3284 | ;; Show the same message that was being shown before. |
| 3284 | (rmail-display-labels) | 3285 | (rmail-display-labels) |
| 3285 | (rmail-swap-buffers) | 3286 | (rmail-swap-buffers) |
| 3286 | (setq rmail-buffer-swapped t))))))) | 3287 | (setq rmail-buffer-swapped t)))))) |
| 3287 | 3288 | ||
| 3288 | ;;;; *** Rmail Mailing Commands *** | 3289 | ;;;; *** Rmail Mailing Commands *** |
| 3289 | 3290 | ||