Salut Stefan,
la 21.03.2007 15:21 Stefan Monnier skribis:
Daniel,
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 %!. The -- maybe not so important -- exception is:
# This would otherwise be recognized as PostScript - address@hidden
0 string %!VMF SunClock's Vector Map Format data
Btw. on SuSE 10.1 this magic entry is ignored by the "file" command,
maybe because it comes too late in the file.
"Juanma" == Juanma Barranquero <address@hidden> writes:
On 3/21/07, Stefan Monnier <address@hidden> wrote:
Who put this entry in magic-mode-alist, and why?
It's there since the beginning, at least according to ViewCVS
(files.el, revision 1.720) and lisp/ChangeLog.11:
2004-11-03 Daniel Pfeiffer <address@hidden>
* files.el (xml-based-modes): Delete var.
(magic-mode-alist): New more general var.
(set-auto-mode): Use it.
Juanma
coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer
--
lerne / learn / apprends / lär dig / ucz się Esperanto:
http://lernu.net / http://ikurso.net
|