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.
This commit is contained in:
Chong Yidong 2012-06-11 18:16:47 +08:00
parent a4712e11fe
commit 72834e10a6
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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.

View file

@ -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