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: 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




reply via email to

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