From 5fbfdacc8b07056733a9c66a2fa05438e3c94260 Mon Sep 17 00:00:00 2001 From: tomo Date: Tue, 1 Feb 2000 04:04:57 +0000 Subject: [PATCH] Fix problem when x-face-mule is not installed. --- mime-image.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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) -- 1.7.10.4