From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: C file recoginzed as image file Date: Fri, 05 Jan 2007 15:52:33 +0100 Message-ID: <459E6631.8050208@gmail.com> 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 1168008827 10576 80.91.229.12 (5 Jan 2007 14:53:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Jan 2007 14:53:47 +0000 (UTC) Cc: Charles Rendleman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 05 15:53: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 1H2qRH-0006jV-PX for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2007 15:53:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2qRH-0004DA-9A for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2007 09:52:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2qQv-00046E-H1 for emacs-devel@gnu.org; Fri, 05 Jan 2007 09:52:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2qQt-00045Q-Ux for emacs-devel@gnu.org; Fri, 05 Jan 2007 09:52:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2qQt-00045J-Px for emacs-devel@gnu.org; Fri, 05 Jan 2007 09:52:35 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H2qQt-0000NK-7h for emacs-devel@gnu.org; Fri, 05 Jan 2007 09:52:35 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:64991 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H2qQr-0002wc-5E; Fri, 05 Jan 2007 15:52:34 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Chris Moore In-Reply-To: X-Antivirus: avast! (VPS 0701-0, 2007-01-03), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H2qQr-0002wc-5E. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1H2qQr-0002wc-5E e41f960031aa296ffa13bd502b2e5354 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:64825 Archived-At: Chris Moore wrote: > Charles Rendleman writes: > >> $ cat not_image_file.c >> #define >> >> $ emacs -Q not_image_file.c >> $ > > image.el has: > > (defconst image-type-header-regexps > ... > ("\\`[\t\n\r ]*#define" . xbm) > ... > > so any file beginning with optional white space and then #define is > treated as an xbm image. > > Similarly, any text file which starts with the 4 characters "GIF8" is > treated as if it was an image. It would be rather surprising at least on w32 if a file with extension .c was an image file.