emacs-devel
[Top][All Lists]
Advanced

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

Re: Image mode


From: Chong Yidong
Subject: Re: Image mode
Date: Thu, 08 Feb 2007 13:36:19 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

"Stuart D. Herring" <address@hidden> writes:

> `image-mode' isn't on `magic-mode-alist'; `image-mode-maybe' is, and
> although perhaps Stefan's stance of nixing it entirely is best, it seems
> to me that the -maybe function belongs there.  Visiting foo.bar with a
> JPEG header in it ought to load Image Minor Mode, provide the C-c C-c
> message, and leave the buffer in Fundamental Mode, just as visiting foo.c
> with the same contents should load, provide, and leave in C mode.

Let's not go around in circles.

To re-iterate, the patch is meant to deal with the following issues
raised in this thread:

1. Several people have opinioned, sometimes vehemently, that when you
   open a file whose filename indicates that it is (e.g.) a text file,
   Emacs should never treat it as an image, even if its contents
   *look* like an image.  So this patch discards image autodetection
   results when there is a non-image mode match in auto-mode-alist.

   The only practical situation where image-minor-mode is useful are
   text-based images like xpm and xbm, and it has already been pointed
   out that autodetection (as opposed to filename detection) is
   useless for these since their contents match generic C header
   files.  So image-minor-mode should NOT be coupled with image
   autodetection.

2. That RMS wants .JPG files to be opened in image-mode through
   autodetection, rather than turning auto-mode-case-fold on by
   default.




reply via email to

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