emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: File type misclassification


From: Stefan Monnier
Subject: Re: File type misclassification
Date: Sun, 25 Mar 2007 22:11:22 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

>> do you remember why you put an entry
>> 
>> ("%![^V]" . ps-mode)
>> 
>> in magic-mode-alist?  Did it just seem like a good idea or was there
>> some particular (set of) circumstances you had bumped into that called
>> for it?
>> 
> I don't remember, but I checked this:  The way I read magic, a conforming
> document must start with %!PS, but a non confirming one only with %!.

Thanks.  I.e. you just thought it would be a good idea.

The question we were discussing is what Emacs should do with it, so what the
standard says is not really important (this is very different from what
`file' should do).  And since Emacs usually uses file-name extensions to
determine the mode of a file, it's important to only use magic-mode-alist in
those rare cases where it's really important in practice.


        Stefan




reply via email to

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