]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix imagemagick-filter-types for imagemagick-types-enable = t.
authorGlenn Morris <rgm@gnu.org>
Thu, 31 May 2012 17:21:31 +0000 (13:21 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 31 May 2012 17:21:31 +0000 (13:21 -0400)
lisp/image.el

index 394d44c21e9d7b533aec97a7129abe5117bb0edc..e53577427695430551e2b4f64d56a3f0e6b85c1a 100644 (file)
@@ -698,18 +698,19 @@ that match `imagemagick-types-enable' and do not match
   (when (fboundp 'imagemagick-types)
     (cond ((null imagemagick-types-enable) nil)
          ((eq imagemagick-types-inhibit t) nil)
-         ((eq imagemagick-types-enable t) (imagemagick-types))
          (t
           (delq nil
                 (mapcar
                  (lambda (type)
                    (unless (memq type imagemagick-types-inhibit)
-                     (catch 'found
-                       (dolist (enable imagemagick-types-enable nil)
-                         (if (cond ((symbolp enable) (eq enable type))
-                                   ((stringp enable)
-                                    (string-match enable (symbol-name type))))
-                             (throw 'found type))))))
+                     (if (eq imagemagick-types-enable t) type
+                       (catch 'found
+                         (dolist (enable imagemagick-types-enable nil)
+                           (if (cond ((symbolp enable) (eq enable type))
+                                     ((stringp enable)
+                                      (string-match enable
+                                                    (symbol-name type))))
+                               (throw 'found type)))))))
                  (imagemagick-types)))))))
 
 (defvar imagemagick--file-regexp nil