[Top][All Lists]

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

Re: Image autodetection

From: Juanma Barranquero
Subject: Re: Image autodetection
Date: Tue, 30 Jan 2007 16:59:09 +0100

On 1/30/07, Stefan Monnier <address@hidden> wrote:

Actually, the way I see it the only real advantage of image-minor-mode is
that if a C file gets wrongly detected as a GIF file, it doesn't really
matter because the C mode is still activated and you just get a bunch of
spurious extra commands to display the "image".

That would be a different change. As it is now, if we just change
`image-mode' to `image-minor-mode' in `magic-mode-alist' (as was done
in a previous proposed patch, now rejected), image files would be
opened in fundamental mode + image minor mode, because as soon as a
non-nil mode is returned when searching in `magic-mode-alist' the
detection of major mode is finished (and so `auto-mode-alist' is
bypassed). At least, that's what I remember from a test I did.

Looks good to me.



reply via email to

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