From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Putting auto-image-file-mode in Options menu Date: Sun, 20 Mar 2005 23:47:29 +0200 Organization: JURTA Message-ID: <87is3mq9ap.fsf@jurta.org> References: <87acp8i6f1.fsf@jurta.org> <87wtsbbrlt.fsf-monnier+emacs@gnu.org> <87ll8qap2h.fsf@jurta.org> <87mzt3h43k.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111356198 17909 80.91.229.2 (20 Mar 2005 22:03:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 22:03:18 +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 23:03:17 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DD8Va-00030X-3F for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 23:02:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD8mY-00051x-BZ for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 17:20:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DD8iC-0000YI-1X for emacs-devel@gnu.org; Sun, 20 Mar 2005 17:15:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DD8i2-0000Rl-KI for emacs-devel@gnu.org; Sun, 20 Mar 2005 17:15:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD8i1-0000ON-R0 for emacs-devel@gnu.org; Sun, 20 Mar 2005 17:15:46 -0500 Original-Received: from [194.126.101.98] (helo=MXR-2.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DD8KN-00013Z-A7; Sun, 20 Mar 2005 16:51:19 -0500 Original-Received: from mail.neti.ee (80-235-41-70-dsl.mus.estpak.ee [80.235.41.70]) by MXR-2.estpak.ee (Postfix) with ESMTP id 489951A333C; Sun, 20 Mar 2005 23:51:15 +0200 (EET) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sat, 19 Mar 2005 19:22:35 -0500") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux) 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:34852 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34852 Richard Stallman writes: > 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? Sorry, I meant auto-image-file-mode. Currently the only one way to visit binary image files in image mode is to enable auto image mode by auto-image-file-mode. However, it doesn't distinguish between ascii based and binary image formats and enables auto image mode for ascii based image files too. But it is desirable to visit ascii based image files in text mode and binary image files in image mode. There should a separate variable with a list of extensions of binary formats (or ascii image formats) to be able after visiting an image file to display it either as an image or as text, without the explicit need to type C-c C-c. -- Juri Linkov http://www.jurta.org/emacs/