diff options
| author | Miles Bader | 2000-12-01 04:37:30 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-12-01 04:37:30 +0000 |
| commit | b170205b82e17cfe8e8b5781f7d0a847826a3f9e (patch) | |
| tree | d0741ec135f19467a5ef1842fccc8f1b739b7685 | |
| parent | dea0a87de4b7280d76c0c0f4c98390cfaf8ed4a6 (diff) | |
| download | emacs-b170205b82e17cfe8e8b5781f7d0a847826a3f9e.tar.gz emacs-b170205b82e17cfe8e8b5781f7d0a847826a3f9e.zip | |
(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/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/image-file.el | 5 |
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 @@ | |||
| 1 | 2000-12-01 Miles Bader <miles@gnu.org> | 1 | 2000-12-01 Miles Bader <miles@gnu.org> |
| 2 | 2 | ||
| 3 | * image-file.el (image-file-name-regexp): Automatically add | ||
| 4 | upper-case variants of each filename extension in | ||
| 5 | `image-file-name-extensions', since they seem to be common. | ||
| 6 | |||
| 3 | * simple.el (minibuffer-contents) | 7 | * simple.el (minibuffer-contents) |
| 4 | (minibuffer-contents-no-properties, delete-minibuffer-contents): | 8 | (minibuffer-contents-no-properties, delete-minibuffer-contents): |
| 5 | New functions. | 9 | 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]." | |||
| 82 | (let ((exts-regexp | 82 | (let ((exts-regexp |
| 83 | (and image-file-name-extensions | 83 | (and image-file-name-extensions |
| 84 | (concat "\\." | 84 | (concat "\\." |
| 85 | (regexp-opt image-file-name-extensions t) | 85 | (regexp-opt (nconc (mapcar #'upcase |
| 86 | image-file-name-extensions) | ||
| 87 | image-file-name-extensions) | ||
| 88 | t) | ||
| 86 | "\\'")))) | 89 | "\\'")))) |
| 87 | (if image-file-name-regexps | 90 | (if image-file-name-regexps |
| 88 | (mapconcat 'identity | 91 | (mapconcat 'identity |