|
From: | Lennart Borgman (gmail) |
Subject: | Re: nxml-mode faces |
Date: | Tue, 18 Dec 2007 21:04:43 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |