From bb5547109f0b264b10b7f99305473cff3d345ea3 Mon Sep 17 00:00:00 2001 From: yoichi Date: Sat, 24 Jul 2004 05:03:53 +0000 Subject: [PATCH] * mime-view.el (mime-display-multipart/related): Do nothing when the part is not found. --- ChangeLog | 5 +++++ mime-view.el | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5276696..e0937bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-07-24 Yoichi NAKAYAMA + + * mime-view.el (mime-display-multipart/related): Do nothing when + the part is not found. + 2004-04-18 TAKAHASHI Kaoru * mime-edit.el (mime-file-types): Add application/pdf. Use base64 diff --git a/mime-view.el b/mime-view.el index 41d4329..10b945f 100644 --- a/mime-view.el +++ b/mime-view.el @@ -939,10 +939,11 @@ MEDIA-TYPE must be (TYPE . SUBTYPE), TYPE or t. t means default." (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))) + (when start + (if original-major-mode-cell + (setq default-situation + (cons original-major-mode-cell default-situation))) + (mime-display-entity start nil default-situation)))) ;;; @ acting-condition ;;; -- 1.7.10.4