[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File type misclassification
From: |
Kim F. Storm |
Subject: |
Re: File type misclassification |
Date: |
Tue, 20 Mar 2007 15:52:55 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) |
"Juanma Barranquero" <address@hidden> writes:
> On 3/20/07, David Kastrup <address@hidden> wrote:
>
>> opening the following file in emacs-snapshot from Ubuntu Edgy
>> (sorry, I don't have a fresher CVS Emacs at work) will throw the
>> buffer into PostScript mode, presumably because it starts with "%!".
>> This seems rather like overkill.
>
> Yep. It's magic-mode-alist's doing:
>
> ("%![^V]" . ps-mode)
First line of the file reads:
%!TEX encoding = UTF-8 Unicode
I see three fixes:
1) Restrict the magic for PostScript files to %!PS
("%!PS" . ps-mode)
2) Recognize the specific case of TEX
("%![^VT]" . ps-mode)
3) Remove it from magic-mode-alist.
--
Kim F. Storm <address@hidden> http://www.cua.dk
- File type misclassification, David Kastrup, 2007/03/20
- Re: File type misclassification, Juanma Barranquero, 2007/03/20
- Re: File type misclassification,
Kim F. Storm <=
- Re: File type misclassification, Stefan Monnier, 2007/03/20
- Re: File type misclassification, David Kastrup, 2007/03/20
- Re: File type misclassification, Stefan Monnier, 2007/03/20
- Re: File type misclassification, David Kastrup, 2007/03/21
- Re: File type misclassification, Stefan Monnier, 2007/03/21
- Re: File type misclassification, Juanma Barranquero, 2007/03/21
- Re: File type misclassification, David Kastrup, 2007/03/21