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: Fri, 05 Jan 2007 15:46:27 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168008473 9188 80.91.229.12 (5 Jan 2007 14:47:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Jan 2007 14:47:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 05 15:47:51 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 1H2qMA-0005QF-Sq for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2007 15:47:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2qMA-0007uk-Bt for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2007 09:47:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2qLB-0007Dd-E1 for emacs-devel@gnu.org; Fri, 05 Jan 2007 09:46:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2qL5-00078A-5Q for emacs-devel@gnu.org; Fri, 05 Jan 2007 09:46:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2qL3-00076K-NB for emacs-devel@gnu.org; Fri, 05 Jan 2007 09:46:33 -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 1H2qL3-0007Nl-AQ for emacs-devel@gnu.org; Fri, 05 Jan 2007 09:46:33 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so6404116ugf for ; Fri, 05 Jan 2007 06:46:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:cc:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type:x-sa-exim-connect-ip:x-sa-exim-mail-from:x-spam-checker-version:x-spam-level:x-spam-status:subject:x-sa-exim-version:x-sa-exim-scanned:sender; b=LRCLBE0XWOJnlFPU9zqVolC9fbRtc8v92KV39hD2NeFUX3JVDopcbvCSQM6udCh6D5HXWPKdZu+qjgpZvAN/6D9uvsbip0/j0O/JqUtc0pWKXzFZ1RP7uwHC6xDLl5mQ7izPLqSyO8jyr9G4EZ6V+oO0igkeixb+O7+fo2TqlPU= Original-Received: by 10.67.19.13 with SMTP id w13mr30074557ugi.1168008390738; Fri, 05 Jan 2007 06:46:30 -0800 (PST) Original-Received: from chrislap.local ( [89.176.28.156]) by mx.google.com with ESMTP id 30sm35250483ugf.2007.01.05.06.46.29; Fri, 05 Jan 2007 06:46:29 -0800 (PST) Original-Received: from localhost ([127.0.0.1] helo=chrislap.local) by chrislap.local with esmtp (Exim 4.63) (envelope-from ) id 1H2qKx-0003ZZ-65; Fri, 05 Jan 2007 15:46:27 +0100 Original-To: Charles Rendleman In-Reply-To: (Charles Rendleman's message of "Fri\, 5 Jan 2007 14\:27\:44 +0000 \(UTC\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: dooglus@gmail.com X-SA-Exim-Version: 4.2.1 (built Sun, 03 Dec 2006 00:39:09 +0000) X-SA-Exim-Scanned: Yes (on chrislap.local) 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:64824 Archived-At: 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.