(undigestify-rmail-message): Update summary buffer.
authorKarl Heuer <kwzh@gnu.org>
Sat, 23 Apr 1994 02:31:52 +0000 (02:31 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sat, 23 Apr 1994 02:31:52 +0000 (02:31 +0000)
lisp/mail/undigest.el

index a230e75..bd91514 100644 (file)
@@ -27,6 +27,8 @@
 
 ;;; Code:
 
+(require 'rmail)
+
 (defun undigestify-rmail-message ()
   "Break up a digest message into its constituent messages.
 Leaves original message, deleted, before the undigestified messages."
@@ -105,7 +107,10 @@ Leaves original message, deleted, before the undigestified messages."
          (let ((n rmail-current-message))
            (rmail-forget-messages)
            (rmail-show-message n)
-           (rmail-delete-forward)))
+           (rmail-delete-forward)
+           (if (rmail-summary-exists)
+               (rmail-select-summary
+                (rmail-update-summary)))))
       (cond (error
             (narrow-to-region (point-min) (1+ (point-max)))
             (delete-region (point-min) (point-max))