emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image.el doesn't associate image-mode with .JPG files


From: Miles Bader
Subject: Re: image.el doesn't associate image-mode with .JPG files
Date: Tue, 12 Dec 2006 21:29:16 +0900

"Juanma Barranquero" <address@hidden> writes:
>> 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.
...
> --- 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 @@
>   (let ((types image-type-file-name-regexps)
> +     (case-fold-search t)

Thought that's probably a reasoanble change, but it doesn't suffice in
this case -- image-type-from-file-name is not called except when
specifically dealing with an image, and Emacs never gets that far unless
auto-mode-alist tells it to...

-Miles
-- 
`The suburb is an obsolete and contradictory form of human settlement'




reply via email to

[Prev in Thread] Current Thread [Next in Thread]