From b170205b82e17cfe8e8b5781f7d0a847826a3f9e Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 1 Dec 2000 04:37:30 +0000 Subject: [PATCH] (image-file-name-regexp): Automatically add upper-case variants of each filename extension in `image-file-name-extensions', since they seem to be common. --- lisp/ChangeLog | 4 ++++ lisp/image-file.el | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + * 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 -- 2.39.5