summaryrefslogtreecommitdiff
path: root/lisp/image-file.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2000-12-01 04:35:54 +0000
committerMiles Bader <miles@gnu.org>2000-12-01 04:35:54 +0000
commit5984eb1bb397b630ae01f0b280d5f62c76a983d2 (patch)
tree4adca4ffe74270bee52230317d8a2bfaf4ac4c5c /lisp/image-file.el
parente69d999de05b7fd76db245de3c8e8fb8b8ae744a (diff)
downloademacs-5984eb1bb397b630ae01f0b280d5f62c76a983d2.tar.gz
(image-file-name-regexp): Automatically add upper-case variants of each
filename extension in `image-file-name-extensions', since they seem to be common.
Diffstat (limited to 'lisp/image-file.el')
-rw-r--r--lisp/image-file.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/image-file.el b/lisp/image-file.el
index f8da174364b..ef667085eac 100644
--- a/lisp/image-file.el
+++ b/lisp/image-file.el
@@ -82,7 +82,10 @@ variable is set using \\[customize]."
(let ((exts-regexp
(and image-file-name-extensions
(concat "\\."
- (regexp-opt image-file-name-extensions t)
+ (regexp-opt (nconc (mapcar #'upcase
+ image-file-name-extensions)
+ image-file-name-extensions)
+ t)
"\\'"))))
(if image-file-name-regexps
(mapconcat 'identity