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

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

Re: files.el


From: Daniel Pfeiffer
Subject: Re: files.el
Date: Wed, 27 Oct 2004 23:15:39 +0200

Saluton,

Stefan Monnier <address@hidden> skribis:

> >> Generally I agree on the new precedence order you implemented
> >> (i.e. -*- mode tag, interpreter, <?xml, auto-mode-alist).
> 
> I haven't looked at the code, but I just want to make sure we only look
> at the first line and that a tar file whose first subfile starts with <?xml
> will still be handled as a tar file, not as an xml file.

Yes, of course.  Except for whitespace the file must immediately start with
those characters.  A file that starts with echo "<?xml" or any other magic is
definitely not a candidate.

> > While this is fixed (in my local copy meanwhile also for strip off
> > suffixes like .orig) ...
> 
> Note that this stripping of .orig (and other things like .~NN.MM~) is
> already possible.

Yes, that's why I cited it.

> I personally have the following for this purpose in my
> .emacs:
> 
> (setq auto-mode-alist (append auto-mode-alist '(("\\.[^/.]+\\'" ignore t))))

Why not nconc...

> Make sure this kind of thing still works (it's used by some packages such as
> jka-compr).

I did not break this.  However, there was only one entry that used ignore
instead of the documented nil (which I changed to nil).  This was silly
because
it meant a small amount of extra work.

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/




reply via email to

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