* lisp/image-file.el (image-file-name-regexp): If compiled with
ImageMagick, include file name extensions it can handle (bug#9516).
image-file-name-extensions)
t)
"\\'"))))
- (if image-file-name-regexps
- (mapconcat 'identity
- (if exts-regexp
- (cons exts-regexp image-file-name-regexps)
- image-file-name-regexps)
- "\\|")
- exts-regexp)))
+ (mapconcat
+ 'identity
+ (delq nil (list exts-regexp
+ image-file-name-regexps
+ (car (rassq 'imagemagick image-type-file-name-regexps))))
+ "\\|")))
;;;###autoload