Re: html-mode demanding html a bit too tight

2007-04-25 Thread Lennart Borgman (gmail)
Stefan Monnier wrote: Maybe if magic-mode-alist were combined into auto-mode-alist it'd be easier to control conflicts or precedence among content vs filename tests. (Not that you want to get too fancy about such things ...) Agreed. I think the most important thing is getting something

Re: html-mode demanding html a bit too tight

2007-04-24 Thread Stefan Monnier
Maybe if magic-mode-alist were combined into auto-mode-alist it'd be easier to control conflicts or precedence among content vs filename tests. (Not that you want to get too fancy about such things ...) Agreed. Stefan ___

Re: html-mode demanding html a bit too tight

2007-04-23 Thread Glenn Morris
Kevin Ryde wrote: If I'm not mistaken the html-mode regexp in magic-mode-alist demands a html. It'd be nice if a html doctype like !DOCTYPE HTML ... or !DOCTYPE html ... could be considered html too. Since plain html is already accepted, I don't see how this can do any harm,

Re: html-mode demanding html a bit too tight

2007-04-23 Thread Stefan Monnier
In a recent build of the cvs, visiting the file minimal.html below selects sgml-mode, where I hoped to get html-mode. According to the Again, the best fix seems to be to make sure the .html extension is heeded. Stefan ___

Re: html-mode demanding html a bit too tight

2007-04-23 Thread Lennart Borgman (gmail)
Stefan Monnier wrote: In a recent build of the cvs, visiting the file minimal.html below selects sgml-mode, where I hoped to get html-mode. According to the Again, the best fix seems to be to make sure the .html extension is heeded. I agree. If you look at EmacsWiki for example you can see

Re: html-mode demanding html a bit too tight

2007-04-23 Thread Kevin Ryde
Lennart Borgman (gmail) [EMAIL PROTECTED] writes: If you look at EmacsWiki for example you can see that a good number of users gets confused by the mode selection caused by that magic-mode-alist overrides auto-mode-alist. I suppose at least the xml and sgml tests are little bit too

html-mode demanding html a bit too tight

2007-04-22 Thread Kevin Ryde
In a recent build of the cvs, visiting the file minimal.html below selects sgml-mode, where I hoped to get html-mode. According to the (version 3.2) spec at http://www.w3.org/TR/REC-html32-19970114#html (the end of the Structure of HTML section) it's a valid minimal html, so it'd be nice if it