Re: html-mode demanding html a bit too tight
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 done to this. Currently if you for example open some PHP mode files they will be opened in some html-mode even though the user has set it to php-mode in the file list. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: html-mode demanding html a bit too tight
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 ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: html-mode demanding html a bit too tight
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, so I added it. (I remember the days when file extensions stood for something round these parts...) ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: html-mode demanding html a bit too tight
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 ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: html-mode demanding html a bit too tight
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 that a good number of users gets confused by the mode selection caused by that magic-mode-alist overrides auto-mode-alist. I think that should be reversed before release. Didn't we discuss that before? The only real drawback I can see is that magic-mode-alist does not deserve it's name that much if we do that change. 8-) ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: html-mode demanding html a bit too tight
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 aggressive. No doubt crazy people who use those formats use equally crazy filenames, so a test on content is good, but you kind of want them after the filename tests, so .html means html. Or for example if there was a specific scrollkeeper .omf mode then hit that before the generic xml. 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 ...) ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug