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: Tue, 9 Jan 2007 20:47:23 +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 1168372063 27122 80.91.229.12 (9 Jan 2007 19:47:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2007 19:47:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 09 20:47:40 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 1H4Mwe-0000Rv-3e for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2007 20:47:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4Mwd-0001fh-Pf for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2007 14:47:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4MwS-0001fN-SC for emacs-devel@gnu.org; Tue, 09 Jan 2007 14:47:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4MwQ-0001dX-Tp for emacs-devel@gnu.org; Tue, 09 Jan 2007 14:47:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4MwQ-0001dR-R6 for emacs-devel@gnu.org; Tue, 09 Jan 2007 14:47:26 -0500 Original-Received: from [66.249.92.175] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4MwP-0004Ql-5z for emacs-devel@gnu.org; Tue, 09 Jan 2007 14:47:26 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so7426942ugf for ; Tue, 09 Jan 2007 11:47:24 -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=RPZi2LeyZndsLMJfuzbMETBSaWlveWFptBuXVsDU6G/Awxsc22M4hqhq9xEN7C3hyYRwA8+NjKU83uvhPDc0BXSeoVHAbaF4Y5Jw9D8GW+mV/xOuYWcGwoIyDt+yZ67dlo6X0zH6/0pNINS2bnajf3EYQSldvSmLV+4C4wOLoLI= Original-Received: by 10.82.114.3 with SMTP id m3mr2946177buc.1168372044008; Tue, 09 Jan 2007 11:47:24 -0800 (PST) Original-Received: by 10.82.146.7 with HTTP; Tue, 9 Jan 2007 11:47:23 -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:65072 Archived-At: On 1/9/07, Chris Moore wrote: > then that's tautological. I can't believe that's what you meant to > say. Yes, I was stating a tautology. That was the idea. The interesting part was the bit about the ".c" extension, of course. Somehow people seems to think (or at least, seem to be expressing in this thread the thought) that files with .c extension (or whatever) can be *anything* and we can do *nothing* to reliably detect them, just because some contrived, absolutely non-realworld examples can be found. I was saying: of course you can reliably detect many things. The point is that contents detection is not infallible, but it is much more reliable (if done correctly) than extension matching. I don't see why we should treat the latter as more significant (or even equally significant) that the former. But all this is irrelevant to whether we should auto-detect images or not, I think. The issue there is not that we cannot auto-detect them reliably (we can, for any significant value of "reliably"), but that we cannot detect whether they contain viruses. /L/e/k/t/u