summaryrefslogtreecommitdiff
path: root/lisp/image.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2012-06-11 18:16:47 +0800
committerChong Yidong <cyd@gnu.org>2012-06-11 18:16:47 +0800
commit72834e10a691114e39a9ad3d3abe93ae9ae83d11 (patch)
tree5a577e6787bc452f7e728a46f2145e438d74fb52 /lisp/image.el
parenta4712e11fe2e59c206406ba6bf600e8a3b5ca2fc (diff)
downloademacs-72834e10a691114e39a9ad3d3abe93ae9ae83d11.tar.gz
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.
Diffstat (limited to 'lisp/image.el')
-rw-r--r--lisp/image.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/image.el b/lisp/image.el
index a47e945c26a..f5a2de5e595 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -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