Adrian, could you elaborate a bit on why it is necessary to put
html-font-lock-keywords into effect when one is editing an XML file [1]?
Those keywords contain stuff that is plain wrong in XML, such as
fontifying stuff inside the <strong> tag in bold.
Fontification in psgml is certainly a Very Good Thing, but I think the
current approach is not correct. Additionally, psgml-parse.el already
has some fontification stuff (not font-lock), and mixing font-lock with
it might produce weird side effects. At least my XEmacs behaves pretty
unexpectedly when editing HTML files nowadays, try it out like this:
1) Start XEmacs, C-x C-f doesnt_exist.html RET
2) Fill in the document title
3) Note the colours
4) Go down below the <h1> tag, hit TAB
5) Watch the colours change
I think this is because psgml's own fontification kicks in when one hits
the TAB in the above. Doing M-x font-lock-fontify-buffer RET brings
back a consistent state (ie. the one that psgml-html and its font-lock
does), but editing the buffer after that again changes the colours.
As you already note in [1], this is the first cut and most likely work
in progress, but could you give any estimates how/when/if you're
planning to continue the work? I'm afraid that we'll start receiving
bug reports about this soon...
[1] <
http://list-archive.xemacs.org/xemacs-patches/200112/msg00169.html>
--
\/ille Skyttä
ville.skytta at
xemacs.org