aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2019-09-26 21:26:27 +0200
committerLars Ingebrigtsen2019-09-26 21:26:33 +0200
commit648a6b7e912c97f9f4190cfd401274a2a33f31da (patch)
tree3cacd512796042e2cc3f132b4773c4de9ebc86d1
parentce89cb760f35a7769769966fc3505604ba2b2f4d (diff)
downloademacs-648a6b7e912c97f9f4190cfd401274a2a33f31da.tar.gz
emacs-648a6b7e912c97f9f4190cfd401274a2a33f31da.zip
Include ImageMagick file name regexps in image-file-name-regexp
* lisp/image-file.el (image-file-name-regexp): If compiled with ImageMagick, include file name extensions it can handle (bug#9516).
-rw-r--r--lisp/image-file.el13
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/image-file.el b/lisp/image-file.el
index c1d44a7d6d6..6f4ee7a953b 100644
--- a/lisp/image-file.el
+++ b/lisp/image-file.el
@@ -85,13 +85,12 @@ the variable is set using \\[customize]."
85 image-file-name-extensions) 85 image-file-name-extensions)
86 t) 86 t)
87 "\\'")))) 87 "\\'"))))
88 (if image-file-name-regexps 88 (mapconcat
89 (mapconcat 'identity 89 'identity
90 (if exts-regexp 90 (delq nil (list exts-regexp
91 (cons exts-regexp image-file-name-regexps) 91 image-file-name-regexps
92 image-file-name-regexps) 92 (car (rassq 'imagemagick image-type-file-name-regexps))))
93 "\\|") 93 "\\|")))
94 exts-regexp)))
95 94
96 95
97;;;###autoload 96;;;###autoload