From: tomo Date: Wed, 2 Feb 2000 10:21:26 +0000 (+0000) Subject: (mime-setup-enable-inline-image): Use "(fboundp 'create-image)" to X-Git-Tag: remi-1_14_0~23 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fea7db27cba3de659523820c37c4bcfc2fe4eda1;p=elisp%2Fsemi.git (mime-setup-enable-inline-image): Use "(fboundp 'create-image)" to detect Emacs 21. Use `eval-after-load' instead of `call-after-loaded' to require `mime-image'. --- diff --git a/semi-setup.el b/semi-setup.el index 57e4bda..f4da19e 100644 --- a/semi-setup.el +++ b/semi-setup.el @@ -45,18 +45,14 @@ it is used as hook to set." (defvar mime-setup-enable-inline-image (and window-system (or (featurep 'xemacs) - (and (featurep 'mule)(module-installed-p 'bitmap)) - )) + (and (featurep 'mule) + (or (fboundp 'create-image) + (module-installed-p 'bitmap))))) "*If it is non-nil, semi-setup sets up to use mime-image.") (if mime-setup-enable-inline-image - (call-after-loaded 'mime-view - (function - (lambda () - (require 'mime-image) - ))) - ) - + (eval-after-load "mime-view" + '(require 'mime-image))) ;; for text/html (defvar mime-setup-enable-inline-html