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 05:30:43 -0800 (PST)

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

>     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.
> 
> 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. As I
mentioned earlier, magic-mode-alist is harder to
modify because it requires thinking up a regexp for
the file contents, which is a trickier task then
finding a regexp for a file name.



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail




reply via email to

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