[Top][All Lists]

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

Re: Putting auto-image-file-mode in Options menu

From: Juri Linkov
Subject: Re: Putting auto-image-file-mode in Options menu
Date: Wed, 16 Mar 2005 19:55:55 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:
> What do people think?  Here's the code to do it.

I looked at the code and have a few comments:

1. .xpm file extension is missing from the list of autoload cookies.

2. Perhaps image-mode should be minor mode for extensions like
   .xbm and .xpm which already have associated major mode c-mode
   in auto-mode-alist.

3. By default this mode should be enabled for non-ascii based
   image format files like .png, .jpg.  This could be achieved
   by enabling auto-compression-mode by default and turning
   image-mode off by default for ascii based formats.

4. Calling `image-toggle-display' sets the modification flag,
   so after visiting image files only for viewing buffers become

Juri Linkov

reply via email to

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