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

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

Re: magic-mode-alist gets in the way


From: James J. Ramsey
Subject: Re: magic-mode-alist gets in the way
Date: Mon, 3 Jan 2005 15:46:15 -0800 (PST)

--- Richard Stallman <address@hidden> wrote:

>     > This would not give good results, because the
> idea
>     > is that
>     > ALL the regexps that match the contents should
> be
>     > tested before
>     > all those that match the file name.
> 
>     But it's that very idea that gets in the way and
>     requires one to work around magic-mode-alist.
> 
> Yes, that's right.  The approach we are using is
> inconvenient in your
> particular case.  The other alternative would have
> much worse
> problems.  People would override magic-mode-alist
> without even
> realizing it.

If the other alternative was Miles Bader's, which was

"Perhaps it would easier if there were only one 'list'
-- auto-mode-alist -- and a way for an entry to
specify a 'file contents regexp' instead of a
file-name matching regexp."

there wouldn't *be* a magic-mode-alist.



                
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 




reply via email to

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