From: tomo Date: Tue, 1 Feb 2000 04:04:57 +0000 (+0000) Subject: Fix problem when x-face-mule is not installed. X-Git-Tag: remi-1_14_0~29 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=5fbfdacc8b07056733a9c66a2fa05438e3c94260;p=elisp%2Fsemi.git Fix problem when x-face-mule is not installed. --- diff --git a/mime-image.el b/mime-image.el index 341ee25..9fcb604 100644 --- a/mime-image.el +++ b/mime-image.el @@ -143,10 +143,13 @@ (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)