From: yamaoka Date: Fri, 9 Mar 2001 06:25:32 +0000 (+0000) Subject: * mime.el (mime-find-root-entity): Find root entity recursively. X-Git-Tag: slim-1_14_7~4 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77b7fdfbbccb5950fdb9708f9c4be710f4544a26;p=elisp%2Fflim.git * mime.el (mime-find-root-entity): Find root entity recursively. --- diff --git a/ChangeLog b/ChangeLog index 61b2046..f81da81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-03-09 Akihiro Arisawa + + * mime.el (mime-find-root-entity): Find root entity recursively. + 2001-02-20 Kenichi OKADA * SLIM: Version 1.14.6 released. diff --git a/mime.el b/mime.el index 2160569..56bdb1b 100644 --- a/mime.el +++ b/mime.el @@ -144,10 +144,9 @@ If MESSAGE is specified, it is regarded as root entity." (defun mime-find-root-entity (entity) "Return root entity of ENTITY." - (let ((p (mime-entity-parent entity))) - (if (null p) - entity - (mime-entity-parent p)))) + (while (not (mime-root-entity-p entity)) + (setq entity (mime-entity-parent entity))) + entity) ;;; @ Header buffer (obsolete)