summaryrefslogtreecommitdiff
path: root/lisp/image-file.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2000-12-01 04:37:30 +0000
committerMiles Bader <miles@gnu.org>2000-12-01 04:37:30 +0000
commitb170205b82e17cfe8e8b5781f7d0a847826a3f9e (patch)
treed0741ec135f19467a5ef1842fccc8f1b739b7685 /lisp/image-file.el
parentdea0a87de4b7280d76c0c0f4c98390cfaf8ed4a6 (diff)
downloademacs-b170205b82e17cfe8e8b5781f7d0a847826a3f9e.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