From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel,gmane.emacs.nxml.general Subject: Re: nxml-mode faces Date: Tue, 18 Dec 2007 21:04:43 +0100 Message-ID: <476827DB.7040205@gmail.com> References: <4767CFA3.10201@f2s.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198008346 29840 80.91.229.12 (18 Dec 2007 20:05:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2007 20:05:46 +0000 (UTC) Cc: emacs-nxml-mode@yahoogroups.com, Emacs Devel To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 18 21:05:58 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J4ih4-0000ln-VK for ged-emacs-devel@m.gmane.org; Tue, 18 Dec 2007 21:05:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4igl-0007r0-9C for ged-emacs-devel@m.gmane.org; Tue, 18 Dec 2007 15:05:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4igU-0007ai-QE for emacs-devel@gnu.org; Tue, 18 Dec 2007 15:04:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4igT-0007Yt-6R for emacs-devel@gnu.org; Tue, 18 Dec 2007 15:04:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4igS-0007Yh-SR for emacs-devel@gnu.org; Tue, 18 Dec 2007 15:04:56 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J4igR-0008Mb-Pz for emacs-devel@gnu.org; Tue, 18 Dec 2007 15:04:56 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:60583 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1J4igO-0007JX-6Z; Tue, 18 Dec 2007 21:04:53 +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 In-Reply-To: <4767CFA3.10201@f2s.com> X-Antivirus: avast! (VPS 071217-0, 2007-12-17), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1J4igO-0007JX-6Z. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1J4igO-0007JX-6Z 8bb845c27892db0602083425cfae2523 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85261 gmane.emacs.nxml.general:1651 Archived-At: 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.