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: Tue, 20 Mar 2007 13:49:19 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

>>>> 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.

Same old problem where the file's content and the file's extension do not
agree on what the file actually contains.  And once again, the file
extension is the better predictor whereas Emacs uses magic-mode-alist in
preference to auto-mode-alist.

> Sigh.  Seems like a magic string for the "TeXshop" TeX editor.  But I
> think just ruling out [VT] is still asking for trouble.

I think a bug report to the TeXshop is in order.

>> 3) Remove it from magic-mode-alist.
> Also an option in my book.

Agreed, a very good option I'd say.  Especially since editing postscript is
rather uncommon.


        Stefan




reply via email to

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