changeset 7038:e640d438df9a

(undigestify-rmail-message): Update summary buffer.
author Karl Heuer <kwzh@gnu.org>
date Sat, 23 Apr 1994 02:31:52 +0000
parents c205795eecc6
children 403172c099fc
files lisp/mail/undigest.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/undigest.el	Sat Apr 23 02:30:17 1994 +0000
+++ b/lisp/mail/undigest.el	Sat Apr 23 02:31:52 1994 +0000
@@ -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 @@
 	  (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))