[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: image.el doesn't associate image-mode with .JPG files
From: |
Mathias Dahl |
Subject: |
Re: image.el doesn't associate image-mode with .JPG files |
Date: |
Wed, 13 Dec 2006 13:39:11 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (windows-nt) |
Richard Stallman <address@hidden> writes:
> If .JPG/.JPEG is frequent, perhaps we should add it to
> `auto-mode-alist', then. Or do this:
>
> (push '("^\xFF\xD8\xFF\xE0\x00\x10JFIF" . image-mode)
> magic-mode-alist)
>
> I am not sure which is better, but I agree we should do one or the
> other.
I guess it is a matter of taste, but I would prefer if Emacs uses the
technique above instead of looking at the file name. An example of
why this is useful: From my digital camera, each time I record a movie
with it I get both an avi file and a thm file (I think that was the
extension but it does not matter really), and it turns out that this
extra thm file is a small thumbnail of the movie, in jpeg format. So
in this case, it would be good if Emacs groked the jpeg file *format*
instead of looking at the file name.
My 2 öre.
- image.el doesn't associate image-mode with .JPG files, Chris Moore, 2006/12/12
- Re: image.el doesn't associate image-mode with .JPG files, Juanma Barranquero, 2006/12/12
- Re: image.el doesn't associate image-mode with .JPG files, Miles Bader, 2006/12/12
- Re: image.el doesn't associate image-mode with .JPG files, Juanma Barranquero, 2006/12/12
- Re: image.el doesn't associate image-mode with .JPG files, Chris Moore, 2006/12/12
- Re: image.el doesn't associate image-mode with .JPG files, Richard Stallman, 2006/12/12
- Re: image.el doesn't associate image-mode with .JPG files,
Mathias Dahl <=
- Re: image.el doesn't associate image-mode with .JPG files, Jason Rumney, 2006/12/13
- Re: image.el doesn't associate image-mode with .JPG files, Juanma Barranquero, 2006/12/13
- Re: image.el doesn't associate image-mode with .JPG files, Chris Moore, 2006/12/13
- Re: image.el doesn't associate image-mode with .JPG files, Juanma Barranquero, 2006/12/13
- Re: image.el doesn't associate image-mode with .JPG files, Chris Moore, 2006/12/13
- Re: image.el doesn't associate image-mode with .JPG files, Juanma Barranquero, 2006/12/13
- Re: image.el doesn't associate image-mode with .JPG files, Miles Bader, 2006/12/13
- Re: image.el doesn't associate image-mode with .JPG files, Jason Rumney, 2006/12/14
- Re: image.el doesn't associate image-mode with .JPG files, Kevin Rodgers, 2006/12/14
- Re: image.el doesn't associate image-mode with .JPG files, Richard Stallman, 2006/12/15