emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C file recoginzed as image file


From: Chris Moore
Subject: Re: C file recoginzed as image file
Date: Fri, 05 Jan 2007 15:46:27 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

Charles Rendleman <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]