From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: C file recoginzed as image file Date: Sat, 6 Jan 2007 00:15:18 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168038943 2396 80.91.229.12 (5 Jan 2007 23:15:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Jan 2007 23:15:43 +0000 (UTC) Cc: Charles Rendleman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 06 00:15:41 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 1H2yHf-0004Ha-ME for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2007 00:15:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2yHe-0005kI-Va for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2007 18:15:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2yHR-0005jj-0o for emacs-devel@gnu.org; Fri, 05 Jan 2007 18:15:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2yHQ-0005jD-93 for emacs-devel@gnu.org; Fri, 05 Jan 2007 18:15:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2yHQ-0005j7-0f for emacs-devel@gnu.org; Fri, 05 Jan 2007 18:15:20 -0500 Original-Received: from [64.233.182.190] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2yHP-0008Fk-N7 for emacs-devel@gnu.org; Fri, 05 Jan 2007 18:15:19 -0500 Original-Received: by nf-out-0910.google.com with SMTP id h2so1191094nfe for ; Fri, 05 Jan 2007 15:15:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VxM3kvqtGzuAvZTvVPIqHJ2P+//s6PF5vqB11r1nGlUwX7vEN+Jn/P/sSCxa/XJ8jfb1cbqpySlN8Vrlrwvy/52kExsy3OFDn/ESZBqCSbpzOtdBcVSVgtvihAQcZqXeZYXCv7XyemH9SRpXNkw3hu0nTgejsioxRZGQN2j8jTw= Original-Received: by 10.82.172.15 with SMTP id u15mr2749215bue.1168038918812; Fri, 05 Jan 2007 15:15:18 -0800 (PST) Original-Received: by 10.82.147.2 with HTTP; Fri, 5 Jan 2007 15:15:18 -0800 (PST) Original-To: "Chris Moore" In-Reply-To: Content-Disposition: inline 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:64841 Archived-At: On 1/6/07, Chris Moore wrote: > Perhaps the question should only be asked if the file content doesn't > match its extension. As it is currently implemented, once you auto-detect you don't have a way to check `auto-mode-alist'. It could be fixed, and perhaps it is really the best way (I can certainly see the benefit of warning the user about a mismatch between the file extension and the contents), but IMHO we shouldn't do it now. It's best just to deactivate image auto-detection and let the users, if they trust their libraries and files, to just set the required element of `image-mode-auto-detectable' to 'maybe or t in their .emacs. /L/e/k/t/u