Fix problem when x-face-mule is not installed.
authortomo <tomo>
Tue, 1 Feb 2000 04:04:57 +0000 (04:04 +0000)
committertomo <tomo>
Tue, 1 Feb 2000 04:04:57 +0000 (04:04 +0000)
mime-image.el

index 341ee25..9fcb604 100644 (file)
   (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))))
+  (condition-case nil
+      (progn
+       (require 'x-face-mule)
+       (when (exec-installed-p uncompface-program exec-path)
+         (add-hook 'mime-display-header-hook
+                   'x-face-decode-message-header)))
+    (error nil))))
 
 (defvar mime-image-format-alist
   '((image jpeg                jpeg)