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: Mon, 8 Jan 2007 23:42:28 +0100 Message-ID: References: <854pr1gsnm.fsf@lola.goethe.zz> <85zm8tfdhm.fsf@lola.goethe.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 1168296170 14846 80.91.229.12 (8 Jan 2007 22:42:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2007 22:42:50 +0000 (UTC) Cc: dooglus@gmail.com, c.a.rendle@gmail.com, Stefan Monnier , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 08 23:42:47 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 1H43CU-0000z0-Iy for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 23:42:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H43CT-0002wO-Tc for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 17:42:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H43CK-0002v3-Dg for emacs-devel@gnu.org; Mon, 08 Jan 2007 17:42:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H43CI-0002sx-Mg for emacs-devel@gnu.org; Mon, 08 Jan 2007 17:42:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H43CI-0002sp-Hn for emacs-devel@gnu.org; Mon, 08 Jan 2007 17:42:30 -0500 Original-Received: from [66.249.92.168] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H43CH-0006R0-Th for emacs-devel@gnu.org; Mon, 08 Jan 2007 17:42:30 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so7118282ugf for ; Mon, 08 Jan 2007 14:42:29 -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=t9mdq8zGvnTCKisOmn0BnkukCSJOkyd1stqm6kLB0HCzyR4fWo8xyHfAMaZoWO1qt0SgOakrhCBICJNNrFrukxUgSC/dBtxcDhjtAsbe39iLCVYNvpcKaey+bHtHRqPokqDU3qvNP63KF7cfDgi/MwfTK0011L23Hemi37NrQf4= Original-Received: by 10.82.113.6 with SMTP id l6mr4773812buc.1168296149004; Mon, 08 Jan 2007 14:42:29 -0800 (PST) Original-Received: by 10.82.146.7 with HTTP; Mon, 8 Jan 2007 14:42:28 -0800 (PST) Original-To: "David Kastrup" In-Reply-To: <85zm8tfdhm.fsf@lola.goethe.zz> 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:65015 Archived-At: On 1/8/07, David Kastrup wrote: > Your point was: > > > And let's not forget that a file with a .c extension containing a > > GIF image is absolutely, non-ambiguously a GIF, whatever the .c may > > seem to imply. > > I don't agree with the "absolutely, non-ambigously" angle. I must be sleepy, because I didn't realize at first that you had reversed what I said and then attacked the strawman. I didn't say: "a C file can not be confused with a GIF file based in a regexp match". I specifically talked about "a file with a .c extension containing a GIF image". Your example is a file with a .c extension containing a C program, not a GIF image. I was talking about false negatives, and you've shown a false positive. Moreover, I'd like to remember that in this thread I've been advocating to *deactivate* auto-detection. /L/e/k/t/u