+2002-10-26 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
+
+ * mime-view.el (mime-preview-find-boundary-info): Fix logic. Do not
+ refer next to next part before examining the next part.
+
2002-08-28 Katsumi Yamaoka <yamaoka@jpl.org>
* mime-edit.el (mime-edit-user-agent-value): Add
;;;
(defun mime-preview-find-boundary-info (&optional get-mother)
+ "Return boundary information of current part.
+If GET-MOTHER, refer boundary surrounding current part and its branches."
(let (entity
p-beg p-end
entity-node-id len)
)
(get-mother
(save-excursion
- (goto-char p-end)
(catch 'tag
(let (e i)
(while (setq e
(point) 'mime-view-entity))
(goto-char e)
(let ((rc (mime-entity-node-id
- (get-text-property (1- (point))
+ (get-text-property (point)
'mime-view-entity))))
(or (and (>= (setq i (- (length rc) len)) 0)
(equal entity-node-id (nthcdr i rc)))
(throw 'tag nil)))
- (setq p-end e)))
+ (setq p-end (or (next-single-property-change
+ (point) 'mime-view-entity)
+ (point-max)))))
(setq p-end (point-max))))
))
(vector p-beg p-end entity)))