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: Wed, 10 Jan 2007 00:19:08 +0100 Message-ID: References: <854pr1gsnm.fsf@lola.goethe.zz> <85zm8tfdhm.fsf@lola.goethe.zz> <86vejgr5sx.fsf@lola.quinscape.zz> 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 1168384818 8534 80.91.229.12 (9 Jan 2007 23:20:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2007 23:20:18 +0000 (UTC) Cc: Chris Moore , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 10 00:20:16 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 1H4QGB-00084n-9V for ged-emacs-devel@m.gmane.org; Wed, 10 Jan 2007 00:20:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4QGA-0006zc-N7 for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2007 18:20:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4QFM-0006da-Ss for emacs-devel@gnu.org; Tue, 09 Jan 2007 18:19:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4QFL-0006bv-4H for emacs-devel@gnu.org; Tue, 09 Jan 2007 18:19:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4QFK-0006bO-QM for emacs-devel@gnu.org; Tue, 09 Jan 2007 18:19:10 -0500 Original-Received: from [64.233.182.186] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4QFJ-0004d8-Rm for emacs-devel@gnu.org; Tue, 09 Jan 2007 18:19:10 -0500 Original-Received: by nf-out-0910.google.com with SMTP id h2so286506nfe for ; Tue, 09 Jan 2007 15:19:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=S7e6fGqy3GS1X2QuONEVSCXw1+TpAZz6jQCaHNjlOepgBUzWudflIVo1rN+h3kTHlYSYPVK0gusBdZP6m45XYknAFC/V8poZ5ODIwyL23GyRqOwomv5p4H63Z+jIUuZ8EE5CiGKen22bHsqwXp+6fHgRcM2N41ho0lZrxnfcYmE= Original-Received: by 10.82.184.2 with SMTP id h2mr3045302buf.1168384748864; Tue, 09 Jan 2007 15:19:08 -0800 (PST) Original-Received: by 10.82.146.7 with HTTP; Tue, 9 Jan 2007 15:19:08 -0800 (PST) Original-To: "Stefan Monnier" 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:65089 Archived-At: On 1/9/07, Stefan Monnier wrote: > Content detection sometimes works well, but sometimes not. Content detection usually works. After all, that's what an image library does when it opens an image file and checks that the contents seem OK, or Microsoft Word when it opens a .doc or .rtf file, etc. Content detection based on regexp matching of a few bytes of the file header is flaky, though ;) > OTOH name-based > detection overall works more reliably because that's what Unix has used for > many years. Well, nobody is suggesting throwing off `auto-mode-alist' and putting `magic-mode-alist' in its place... > I think that giving precedence to one over the other is an error. I happen to disagree, but it is largely irrelevant to this discussion. I prefer to concentrate my efforts in resolving the issue of the image libraries, with the hope that we release Emacs 22 someday this year (I almost wrote "month", but I don't want to be overly optimistic). I stand for what I said earlier: let's disable image auto-detection, add a note to NEWS (with big warnings about viruses, or whatever people feels its necessary) detailing how to enable it, and get over it. /L/e/k/t/u