Set up for `mime-preview-condition' instead of
authormorioka <morioka>
Sat, 21 Mar 1998 21:23:24 +0000 (21:23 +0000)
committermorioka <morioka>
Sat, 21 Mar 1998 21:23:24 +0000 (21:23 +0000)
`mime-view-body-visible-condition' and
`mime-view-content-filter-alist'.

mime-image.el

index 8e5b947..4eb0eef 100644 (file)
                 (format  (nth 2 rule)))
             (if (image-inline-p format)
                 (let ((type/subtype (mime-type/subtype-string type subtype)))
-                  (set-alist 'mime-view-content-filter-alist
-                             type/subtype #'mime-view-filter-for-image)
+                   ;; (set-alist 'mime-view-content-filter-alist
+                   ;;            type/subtype #'mime-view-filter-for-image)
                   (set-alist 'mime-view-image-converter-alist
                              type/subtype format)
                    ;; (add-to-list
                    ;;  'mime-view-visible-media-type-list
                    ;;  ctype)
                   (ctree-set-calist-strictly
-                   'mime-view-body-visible-condition
-                   (list (cons 'type type)(cons 'subtype subtype)))
+                   'mime-preview-condition
+                   (list (cons 'type type)(cons 'subtype subtype)
+                         '(body . visible)
+                         (cons 'body-filter
+                               #'mime-view-filter-for-image)))
                   )
               ))))
        '((image jpeg           jpeg)
          (image x-mag          mag)
          (image png            png)
          ))
-          
+
 (defvar mime-view-ps-to-gif-command "pstogif")