* mime-view.el (mime-preview-toggle-display): When both "type" and
authorueno <ueno>
Mon, 21 Mar 2005 01:31:41 +0000 (01:31 +0000)
committerueno <ueno>
Mon, 21 Mar 2005 01:31:41 +0000 (01:31 +0000)
"*type" conditions are not specified, the entity should be regarded
as invisible.

ChangeLog
mime-view.el

index ad44ba0..e5fad25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-09-24   Daiki Ueno  <ueno@unixuser.org>
+
+       * mime-view.el (mime-preview-toggle-display): When both "type" and
+       "*type" conditions are not specified, the entity should be regarded
+       as invisible.
+
 2004-09-27  Yoichi NAKAYAMA  <yoichi@geiin.org>
 
        * mime-edit.el (mime-edit-temp-message-buffer): Define.
index cd0e80a..6155b60 100644 (file)
@@ -1819,9 +1819,9 @@ If LINES is negative, scroll up LINES lines."
          (display)
          (t
           (setq display
-                (eq (cdr (or (assq sym situation)
-                             (assq type situation)))
-                    'invisible))))
+                (memq (cdr (or (assq sym situation)
+                               (assq type situation)))
+                      '(nil invisible)))))
     (setq situation (put-alist sym (if display
                                       'visible
                                     'invisible)