changeset 102690:1089802614eb

(rmail-expunge): Update summary buffer even if NO-SHOW.
author Richard M. Stallman <rms@gnu.org>
date Sun, 22 Mar 2009 14:12:34 +0000
parents 2b789f732afb
children 04c29e64ca1a
files lisp/mail/rmail.el
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Sun Mar 22 02:43:37 2009 +0000
+++ b/lisp/mail/rmail.el	Sun Mar 22 14:12:34 2009 +0000
@@ -3265,9 +3265,15 @@
   (interactive)
   (when (rmail-expunge-confirmed)
     (let ((was-deleted (rmail-message-deleted-p rmail-current-message))
-	  (was-swapped (rmail-buffers-swapped-p)))
+	  (was-swapped (rmail-buffers-swapped-p))
+	  (total rmail-total-messages))
       (rmail-only-expunge t)
-      (unless dont-show
+      (if dont-show
+	  ;; Do update the summary buffer, if any.
+	  (when (rmail-summary-exists)
+	    (with-current-buffer rmail-summary-buffer
+	      (let ((rmail-total-messages total))
+		(rmail-update-summary))))
 	(if (rmail-summary-exists)
 	    (rmail-select-summary (rmail-update-summary))
 	  ;; If we expunged the current message, a new one is current now,