[Top][All Lists]
[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
- magic-mode-alist gets in the way, James J. Ramsey, 2005/01/01
- Re: magic-mode-alist gets in the way, Miles Bader, 2005/01/01
- Re: magic-mode-alist gets in the way, Stefan Monnier, 2005/01/03
- Re: magic-mode-alist gets in the way, Richard Stallman, 2005/01/03
- Re: magic-mode-alist gets in the way, James J. Ramsey, 2005/01/04
- Re: magic-mode-alist gets in the way, Stefan, 2005/01/04
- Re: magic-mode-alist gets in the way, Richard Stallman, 2005/01/04
- Re: magic-mode-alist gets in the way, Richard Stallman, 2005/01/04
- Re: magic-mode-alist gets in the way, James J. Ramsey, 2005/01/04
- Re: magic-mode-alist gets in the way, Richard Stallman, 2005/01/05