On 12/12/06, Chris Moore <[EMAIL PROTECTED]> wrote:
Opening these files with Emacs opens them in fundamental mode, not
image mode, since Emacs only associates image-mode with .jpg and .jpeg
files.
`image-type-from-file-name' uses `string-match', which depends on the
setting of `case-fold-search'.
Adding this line to the default value of image-type-file-name-regexps
in lisp/image.el would help:
("\\.JPE?G\\'" . jpeg)
Perhaps the following patch would be more correct. After all, I don't
think it will be common to have files with extensions .PNG, .TIFF,
.BMP, etc. which are not images.
/L/e/k/t/u
Index: lisp/image.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/image.el,v
retrieving revision 1.63
diff -u -2 -r1.63 image.el
--- lisp/image.el 21 Apr 2006 20:56:06 -0000 1.63
+++ lisp/image.el 12 Dec 2006 10:59:47 -0000
@@ -271,4 +271,5 @@
be determined."
(let ((types image-type-file-name-regexps)
+ (case-fold-search t)
type)
(while types
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug