From: yamaoka Date: Thu, 14 Jun 2001 22:22:23 +0000 (+0000) Subject: Synch with the branch `semi-1_14'. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=6c4a601783d2228c17ace67f8929cbddb84dd5cf;p=elisp%2Fsemi.git Synch with the branch `semi-1_14'. --- diff --git a/ChangeLog b/ChangeLog index 16f41fd..a513ee4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2001-06-12 Yuuichi Teranishi + + * mime-view.el (mime-display-multipart/related): When "start" + parameter specifies part, treat the part as root. + +2001-06-12 Akihiro Arisawa + + * mime-view.el (mime-display-multipart/related): New function; set up + for `mime-preview-condition'. + 2001-04-19 Katsumi Yamaoka * mime-bbdb.el: Load "bbdb-hooks" when the symbol function diff --git a/mime-view.el b/mime-view.el index 4db8b4c..3bedcad 100644 --- a/mime-view.el +++ b/mime-view.el @@ -748,6 +748,12 @@ Each elements are regexp of field-name.") (ctree-set-calist-strictly 'mime-preview-condition + '((type . multipart)(subtype . related) + (body . visible) + (body-presentation-method . mime-display-multipart/related))) + +(ctree-set-calist-strictly + 'mime-preview-condition '((type . multipart)(subtype . t) (body . visible) (body-presentation-method . mime-display-multipart/mixed))) @@ -923,6 +929,22 @@ MEDIA-TYPE must be (TYPE . SUBTYPE), TYPE or t. t means default." situations (cdr situations) i (1+ i))))) +(defun mime-display-multipart/related (entity situation) + (let* ((param-start (mime-parse-msg-id + (std11-lexical-analyze + (cdr (assoc "start" + (mime-content-type-parameters + (mime-entity-content-type entity))))))) + (start (or (and param-start (mime-find-entity-from-content-id + param-start + entity)) + (car (mime-entity-children entity)))) + (original-major-mode-cell (assq 'major-mode situation)) + (default-situation (cdr (assq 'childrens-situation situation)))) + (if original-major-mode-cell + (setq default-situation + (cons original-major-mode-cell default-situation))) + (mime-display-entity start nil default-situation))) ;;; @ acting-condition ;;;