* mime-image.el: Add checking for `x-face-mule'.
authorueno <ueno>
Tue, 1 Feb 2000 04:03:04 +0000 (04:03 +0000)
committerueno <ueno>
Tue, 1 Feb 2000 04:03:04 +0000 (04:03 +0000)
mime-image.el

index 341ee25..ac3e957 100644 (file)
     (highlight-headers (point-min) (re-search-forward "^$" nil t) t))
   (add-hook 'mime-display-header-hook
            'mime-preview-x-face-function-use-highlight-headers))
- ((featurep 'mule)
-  (require 'x-face-mule)
-  (when (exec-installed-p uncompface-program exec-path)
-    (add-hook 'mime-display-header-hook
-             'x-face-decode-message-header))))
+ ((and (featurep 'mule)
+       (condition-case nil
+          (require 'x-face-mule)
+        (file-error nil))
+       (exec-installed-p uncompface-program exec-path))
+  (add-hook 'mime-display-header-hook 'x-face-decode-message-header)))
 
 (defvar mime-image-format-alist
   '((image jpeg                jpeg)