From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Image mode Date: Tue, 06 Feb 2007 12:10:38 -0500 Message-ID: <873b5jjjox.fsf@stupidchicken.com> References: <87k5yxeg19.fsf@jurta.org> <87hcu0l909.fsf@stupidchicken.com> <87d54otndk.fsf@stupidchicken.com> <87abzs9xc4.fsf@stupidchicken.com> <87lkjc5opu.fsf@stupidchicken.com> <87d54ob8c5.fsf@stupidchicken.com> <87iregmafd.fsf@stupidchicken.com> <45C8A2ED.3070809@gnu.org> <87ejp3e0be.fsf@stupidchicken.com> <45C8B39D.7020103@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1170782057 1694 80.91.229.12 (6 Feb 2007 17:14:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Feb 2007 17:14:17 +0000 (UTC) Cc: Juanma Barranquero , Stefan Monnier , emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 06 18:14:07 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HETtJ-0002Rm-D2 for ged-emacs-devel@m.gmane.org; Tue, 06 Feb 2007 18:14:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HETtJ-0007Lc-0q for ged-emacs-devel@m.gmane.org; Tue, 06 Feb 2007 12:14:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HETqG-0005do-9x for emacs-devel@gnu.org; Tue, 06 Feb 2007 12:10:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HETqF-0005dY-St for emacs-devel@gnu.org; Tue, 06 Feb 2007 12:10:51 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HETqF-0001tm-J5; Tue, 06 Feb 2007 12:10:51 -0500 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l16HAnPD029134; Tue, 6 Feb 2007 12:10:49 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by central-city-carrier-station.mit.edu (8.13.6/8.9.2) with ESMTP id l16HAdMD020923; Tue, 6 Feb 2007 12:10:39 -0500 (EST) Original-Received: from localhost (MAIN-TWELVE-FOUR-EIGHTY-THREE.MIT.EDU [18.19.6.228]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l16HAcTu020184; Tue, 6 Feb 2007 12:10:39 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HETq2-00019q-00; Tue, 06 Feb 2007 12:10:38 -0500 In-Reply-To: <45C8B39D.7020103@gnu.org> (Jason Rumney's message of "Tue\, 06 Feb 2007 16\:58\:05 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: 1 X-detected-kernel: Solaris 9.1 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 Xref: news.gmane.org gmane.emacs.devel:66029 Archived-At: Jason Rumney writes: > Chong Yidong wrote: >> The problem is that while the behavior of image-mode-maybe suits >> text-based image files, it does not seem to do the right thing for >> binary image files. This should be fixed before the release. > > I'm not sure what you mean here. image-mode-maybe does not care > whether the major-mode it activates is "text" or "binary". That's the problem. > I think what you are saying is that it should not use c-mode for > file.c if file.c looks like an image. But this is where the whole > security concern started, and it seems that the majority of people > prefer Emacs not to default to image-mode for such a misleadingly > named file. Anyway, such a case is rare and not worth arguing over as > much as has happened on this thread. I would argue that if file.c looks like an image, it should not even turn on image-minor-mode; it should just try displaying in c-mode.