From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Putting auto-image-file-mode in Options menu Date: Mon, 14 Mar 2005 11:21:36 +0100 Message-ID: References: <87acp8i6f1.fsf@jurta.org> <87wtsbbrlt.fsf-monnier+emacs@gnu.org> <87ll8qap2h.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 1110801166 9831 80.91.229.2 (14 Mar 2005 11:52:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2005 11:52:46 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 14 12:52:45 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DAo6G-000717-1h for ged-emacs-devel@m.gmane.org; Mon, 14 Mar 2005 12:51:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAoLs-0003BR-Kw for ged-emacs-devel@m.gmane.org; Mon, 14 Mar 2005 07:07:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DAnBq-00057Z-1h for emacs-devel@gnu.org; Mon, 14 Mar 2005 05:52:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DAnBS-000568-Sd for emacs-devel@gnu.org; Mon, 14 Mar 2005 05:52:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAn90-0004ul-8k for emacs-devel@gnu.org; Mon, 14 Mar 2005 05:49:54 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DAmhd-0004dc-LR for emacs-devel@gnu.org; Mon, 14 Mar 2005 05:21:37 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DAmhd-0006t3-1U; Mon, 14 Mar 2005 05:21:37 -0500 Original-To: Juri Linkov In-Reply-To: <87ll8qap2h.fsf@jurta.org> (Juri Linkov's message of "Mon, 14 Mar 2005 03:23:02 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) 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:34566 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34566 Juri Linkov writes: > Stefan Monnier writes: >>> There is already "Automatic File De/compression" menu item >>> for auto-compression-mode in the Options menu, but no menu item >>> for auto-image-file-mode. This looks like an unintentional omission. >> >> I think it's omitted because it's a very rarely used feature. > > Indeed, auto-image-file-mode is useful only for viewing images. > OTOH, editing image files as plain text in Emacs is a rare > operation too. And even with auto-image-file-mode set to t, > editing is possible after visiting them with find-file-literally. > With all this said, I have a question: is there any reason not > to turn auto-image-file-mode on by default? If you are working through a slow X connection, accidentally visiting an image file could be a very expensive mistake. In the past, displaying an image that was overtall could really confuse Emacs. This has become much better recently, but I don't know how the situation is with overwide images. Anyway, there are ASCII-based image file formats like ASCII PBM, PGM, PPM, PAM and XBM and XPM. Much more often than not, when I open such files with Emacs, I really don't want to see the picture, but the source text (to see comments, assignment of colors and palette, ranges and so on). And using find-file-literally (even if we provided it in the menus, where it currently isn't) does not cater overly gracefully for the line endings in those files. > I would like to ask the same question for auto-compression-mode too. > What is the reason not to turn it on by default? How often people > visit compressed files for editing without uncompressing? I don't know how well auto-compression-mode deals with things like missing compression commands. If it fails gracefully, enabling it by default should not do much harm. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum