Sync with semi-1_13.
authoryamaoka <yamaoka>
Sun, 16 Jan 2000 22:21:15 +0000 (22:21 +0000)
committeryamaoka <yamaoka>
Sun, 16 Jan 2000 22:21:15 +0000 (22:21 +0000)
ChangeLog
mime-w3.el

index 0ff0940..ac01565 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-01-16  Keiichi Suzuki  <keiichi@nanap.org>
+
+       * mime-w3.el (mime-preview-text/html): Don't get root entity from
+       `mime-entity-buffer'.
+
 2000-01-05  Katsumi Yamaoka   <yamaoka@jpl.org>
 
        * Makefile, README.en: Update for the new CVS server.
index 6ce9927..80d67ce 100644 (file)
 
 (defun mime-preview-text/html (entity situation)
   (setq mime-w3-message-structure
-       (with-current-buffer (mime-entity-buffer entity)
-         mime-message-structure))
+       (let ((ent entity))
+         (while (not (mime-root-entity-p ent))
+           (setq ent (mime-entity-parent ent)))
+         ent))
   (goto-char (point-max))
   (let ((p (point)))
     (insert "\n")