From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Putting auto-image-file-mode in Options menu Date: Sat, 19 Mar 2005 19:22:35 -0500 Message-ID: References: <87acp8i6f1.fsf@jurta.org> <87wtsbbrlt.fsf-monnier+emacs@gnu.org> <87ll8qap2h.fsf@jurta.org> <87mzt3h43k.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1111279117 11614 80.91.229.2 (20 Mar 2005 00:38:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 00:38:37 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 20 01:38:36 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DCoSg-0001NH-3O for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 01:38:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCojS-0000WB-R3 for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2005 19:55:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DCoiK-0008WN-O7 for emacs-devel@gnu.org; Sat, 19 Mar 2005 19:54:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DCoi7-0008QZ-9g for emacs-devel@gnu.org; Sat, 19 Mar 2005 19:54:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCoi6-0008ND-Ma for emacs-devel@gnu.org; Sat, 19 Mar 2005 19:54:30 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DCoDD-00045K-U7 for emacs-devel@gnu.org; Sat, 19 Mar 2005 19:22:36 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DCoDD-0006T9-Jv; Sat, 19 Mar 2005 19:22:35 -0500 Original-To: Juri Linkov In-reply-to: <87mzt3h43k.fsf@jurta.org> (message from Juri Linkov on Wed, 16 Mar 2005 19:55:55 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34795 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34795 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. I am completely lost here. What does auto-compression-mode have to do with image-mode? 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. Someone else can do that. 4. Calling `image-toggle-display' sets the modification flag, so after visiting image files only for viewing buffers become modified. I will make it restore the modified flag after its change.