* mime-view.el (mime-preview-toggle-display): When both "type" and
[elisp/semi.git] / mime-view.el
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)