Re: nxml-mode faces

"Lennart Borgman (gmail)" <[email protected]>
Newsgroups gmane.emacs.devel,gmane.emacs.nxml.general
Message-ID <[email protected]>
Jason Rumney wrote:
> Does anyone have any objection to the patch below, which makes use of
> existing font-lock faces rather than inventing an entirely separate
> color scheme?

I have nothing against it, but I cc the emacs nxml mailing list if 
someone there has any comments. (In fact I am using this color scheme 
already in nXhtml, since fontification there may be done by xhtml-mode 
even though nxhtml-mode (derived from nxml-mode) is used.)

There is another problem with fontification in nxml-mode. The 
fontification routines works very differently from the normal font lock 
scheme. If I understand and remember correctly fontification is done 
while parsing the file. I think James Clark implemented it this way to 
make it faster and perhaps it also allows more granularity.

However the fontification is a problem if you try to make nxml-mode 
coexist with other major modes in a buffer since nxml-mode parses the 
whole buffer and also wants to fontify the whole buffer.

But this is of course a problem to solve further on, it will take some time.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.