Commit 72834e10 authored by Chong Yidong's avatar Chong Yidong

Give ImageMagick lowest priority in image-type-file-name-regexps.

* lisp/image.el (imagemagick-register-types): Put the ImageMagick
entry at the end of image-type-file-name-regexps.
parent a4712e11
2012-06-11 Chong Yidong <cyd@gnu.org>
* image.el (imagemagick-register-types): Put the ImageMagick entry
at the end of image-type-file-name-regexps.
2012-06-11 Johan Bockgård <bojohan@gnu.org>
* emacs-lisp/pcase.el (pcase-UPAT, pcase-QPAT): New edebug specs.
......
......@@ -747,7 +747,10 @@ If Emacs is compiled without ImageMagick support, this does nothing."
(push (cons re 'image-mode) auto-mode-alist))
(if itfnr-elt
(setcar itfnr-elt re)
(push (cons re 'imagemagick) image-type-file-name-regexps)))
;; Append to `image-type-file-name-regexps', so that we
;; preferentially use specialized image libraries.
(add-to-list 'image-type-file-name-regexps
(cons re 'imagemagick) t)))
(setq imagemagick--file-regexp re))))
(defcustom imagemagick-types-inhibit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment