summaryrefslogtreecommitdiff
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
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.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/image-file.el5
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ee1eddc4d3d..4b982c0855a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
2000-12-01 Miles Bader <miles@gnu.org>
+ * image-file.el (image-file-name-regexp): Automatically add
+ upper-case variants of each filename extension in
+ `image-file-name-extensions', since they seem to be common.
+
* simple.el (minibuffer-contents)
(minibuffer-contents-no-properties, delete-minibuffer-contents):
New functions.
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