From bbbc8538eab93c3e1f1c5d17032f54513c31e674 Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 6 Jun 2012 11:08:05 +0300 Subject: [PATCH] * mu4e-utils.el: better runtime check for imagemagick --- emacs/mu4e-utils.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/mu4e-utils.el b/emacs/mu4e-utils.el index 6e523191..d48f67bb 100644 --- a/emacs/mu4e-utils.el +++ b/emacs/mu4e-utils.el @@ -736,8 +736,10 @@ mu4e logs some of its internal workings to a log-buffer. See MAXWIDTH. Function tries to use imagemagick if available (ie., emacs was compiled with inmagemagick support); otherwise MAXWIDTH is ignored." - (let* ((have-im (boundp 'imagemagick)) - (identify (and have-im maxwidth (executable-find mu4e-imagemagick-identify))) + (let* ((have-im (and (fboundp 'imagemagick-types) + (imagemagick-types))) ;; hmm, should check for specific type + (identify (and have-im maxwidth + (executable-find mu4e-imagemagick-identify))) (props (and identify (shell-command-to-string (format "%s -format '%%w' %s" identify (shell-quote-argument imgpath)))))