diff options
| author | Chong Yidong | 2012-06-11 18:16:47 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-06-11 18:16:47 +0800 |
| commit | 72834e10a691114e39a9ad3d3abe93ae9ae83d11 (patch) | |
| tree | 5a577e6787bc452f7e728a46f2145e438d74fb52 | |
| parent | a4712e11fe2e59c206406ba6bf600e8a3b5ca2fc (diff) | |
| download | emacs-72834e10a691114e39a9ad3d3abe93ae9ae83d11.tar.gz emacs-72834e10a691114e39a9ad3d3abe93ae9ae83d11.zip | |
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.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/image.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 026e84058ef..6872e3d2235 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-06-11 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * image.el (imagemagick-register-types): Put the ImageMagick entry | ||
| 4 | at the end of image-type-file-name-regexps. | ||
| 5 | |||
| 1 | 2012-06-11 Johan Bockgård <bojohan@gnu.org> | 6 | 2012-06-11 Johan Bockgård <bojohan@gnu.org> |
| 2 | 7 | ||
| 3 | * emacs-lisp/pcase.el (pcase-UPAT, pcase-QPAT): New edebug specs. | 8 | * emacs-lisp/pcase.el (pcase-UPAT, pcase-QPAT): New edebug specs. |
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." | |||
| 747 | (push (cons re 'image-mode) auto-mode-alist)) | 747 | (push (cons re 'image-mode) auto-mode-alist)) |
| 748 | (if itfnr-elt | 748 | (if itfnr-elt |
| 749 | (setcar itfnr-elt re) | 749 | (setcar itfnr-elt re) |
| 750 | (push (cons re 'imagemagick) image-type-file-name-regexps))) | 750 | ;; Append to `image-type-file-name-regexps', so that we |
| 751 | ;; preferentially use specialized image libraries. | ||
| 752 | (add-to-list 'image-type-file-name-regexps | ||
| 753 | (cons re 'imagemagick) t))) | ||
| 751 | (setq imagemagick--file-regexp re)))) | 754 | (setq imagemagick--file-regexp re)))) |
| 752 | 755 | ||
| 753 | (defcustom imagemagick-types-inhibit | 756 | (defcustom imagemagick-types-inhibit |