changeset 88226:8a1f15a85efb

(rmail-set-attribute): Call rmail-summary-update.
author Alex Schroeder <alex@gnu.org>
date Thu, 19 Jan 2006 23:52:59 +0000
parents 88a9102875c2
children b589e7b4f4c4
files lisp/mail/rmail.el
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Thu Jan 19 12:59:11 2006 +0000
+++ b/lisp/mail/rmail.el	Thu Jan 19 23:52:59 2006 +0000
@@ -1888,11 +1888,9 @@
 	(set-buffer rmail-buffer)
 	(or msgnum (setq msgnum rmail-current-message))
 	(rmail-desc-set-attribute attr-index state msgnum)
-
         ;; Deal with the summary buffer.
-        (if rmail-summary-buffer
-            (with-current-buffer rmail-summary-buffer
-              (rmail-summary-update-attribute attr-index msgnum)))))))
+        (when rmail-summary-buffer
+	  (rmail-summary-update msgnum))))))
 
 (defun rmail-message-labels-p (n labels)
   "Return t if message number N has keywords matching LABELS.