From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chris Moore" Newsgroups: gmane.emacs.devel Subject: Re: C file recoginzed as image file Date: Sat, 6 Jan 2007 00:01:07 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168038090 32191 80.91.229.12 (5 Jan 2007 23:01:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Jan 2007 23:01:30 +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:01:27 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 1H2y3t-0000T4-LA for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2007 00:01:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2y3t-0004tE-8g for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2007 18:01:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2y3i-0004sx-Pq for emacs-devel@gnu.org; Fri, 05 Jan 2007 18:01:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2y3h-0004qj-CU for emacs-devel@gnu.org; Fri, 05 Jan 2007 18:01:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2y3h-0004qZ-9M for emacs-devel@gnu.org; Fri, 05 Jan 2007 18:01:09 -0500 Original-Received: from [66.249.92.171] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2y3g-0005ZN-Nn for emacs-devel@gnu.org; Fri, 05 Jan 2007 18:01:08 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so6530347ugf for ; Fri, 05 Jan 2007 15:01:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=WQaG0AY9ohrjmLhNt7RAq+1DRUESZme1/a441g5AzpAHrZJJvoES/U03Jta1IFbjZRFK27YULuPkc4jivEUaYUFNZdvovpkXTDLarezL30b3R2pvjJHptr0P/as+r9n1Gtp3WXjL+t38LwCGHxfAeB68rLyqqC3LYAc4eqbm794= Original-Received: by 10.78.97.7 with SMTP id u7mr1470208hub.1168038067935; Fri, 05 Jan 2007 15:01:07 -0800 (PST) Original-Received: by 10.78.169.19 with HTTP; Fri, 5 Jan 2007 15:01:07 -0800 (PST) Original-To: "Juanma Barranquero" In-Reply-To: Content-Disposition: inline X-Google-Sender-Auth: ad82b064987ee23f 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:64840 Archived-At: On 1/5/07, Juanma Barranquero wrote: > That's a reason no to auto-detect images, not a reason to use > `magic-mode-alist' after `auto-mode-alist'. OK. > That's more-or-less easy even now: Perhaps the question should only be asked if the file content doesn't match its extension. If I'm opening a .png file and it contains a PNG image, then I've already decided that I'm willing to trust the content enough to display it. But if I'm opening a .c file I haven't, and want Emacs to warn me.