[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: magic-mode-alist gets in the way
From: |
Stefan Monnier |
Subject: |
Re: magic-mode-alist gets in the way |
Date: |
Mon, 03 Jan 2005 12:50:02 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
> 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. To keep that working
> using just one list, people would have to be super-careful
> about the order of the list.
I can't think of a good reason why the content should always take precedence
over the file name. If a file "foo.html" starts with "#!/bin/sh" it makes
perfect sense to edit it as an HTML file rather than a shell script.
Stefan
- 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 <=
- 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