[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: |
Sat, 1 Jan 2005 19:08:18 -0800 (PST) |
--- Miles Bader <address@hidden> wrote:
> > magic-mode-alist overrides this, which is
> annoying.
> >
> > I'm not sure what the right solution is, since
> there
> > were definite reasons for having magic-mode-alist
> > override auto-mode-alist. Still, two things:
>
> 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.
Hmm, maybe have it so that if the car of an entry in
auto-mode-alist is just a string, then it is
interpreted as a regexp of the file name, but if the
car of the entry is of the form ('magic . "some
string"), then "some string" should be a regexp
applied to the file contents? That should be
backward-compatible with the current format of
auto-mode-alist, but I don't know what complications
it might entail.
__________________________________
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