From: keiichi Date: Sun, 16 Jan 2000 08:31:07 +0000 (+0000) Subject: (mime-preview-text/html): Don't get root entity from `mime-entity-buffer'. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=d3109e9c99e21fc86e282b55133ab6d130f33dde;p=elisp%2Fsemi.git (mime-preview-text/html): Don't get root entity from `mime-entity-buffer'. --- diff --git a/mime-w3.el b/mime-w3.el index 6ce9927..80d67ce 100644 --- a/mime-w3.el +++ b/mime-w3.el @@ -47,8 +47,10 @@ (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")