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 Subject: Re: nxml-mode parser and multi major modes Date: Wed, 28 May 2008 08:21:05 +0200 Message-ID: <483CF9D1.4090109@gmail.com> References: <483C871C.8040206@gmail.com> <483C8984.3050901@gnu.org> <483C9B77.9080204@gmail.com> <483CA210.4060303@gnu.org> 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 1211955692 28070 80.91.229.12 (28 May 2008 06:21:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 May 2008 06:21:32 +0000 (UTC) Cc: Daniel Colascione , Emacs Devel To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 28 08:22:13 2008 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 1K1F36-00078E-O8 for ged-emacs-devel@m.gmane.org; Wed, 28 May 2008 08:22:12 +0200 Original-Received: from localhost ([127.0.0.1]:58371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1F2L-0002Rr-4I for ged-emacs-devel@m.gmane.org; Wed, 28 May 2008 02:21:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1F2F-0002Rm-TM for emacs-devel@gnu.org; Wed, 28 May 2008 02:21:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1F2D-0002Ra-FA for emacs-devel@gnu.org; Wed, 28 May 2008 02:21:18 -0400 Original-Received: from [199.232.76.173] (port=45995 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1F2D-0002RX-96 for emacs-devel@gnu.org; Wed, 28 May 2008 02:21:17 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:59037) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K1F28-000237-Cn; Wed, 28 May 2008 02:21:12 -0400 Original-Received: from c83-254-145-59.bredband.comhem.se ([83.254.145.59]:60393 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1K1F26-0003q2-8t; Wed, 28 May 2008 08:21:11 +0200 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: <483CA210.4060303@gnu.org> X-Antivirus: avast! (VPS 080527-1, 2008-05-27), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.145.59 X-Scan-Result: No virus found in message 1K1F26-0003q2-8t. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1K1F26-0003q2-8t 41f53c5b4913312e58ea67c07a296e9f 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:97868 Archived-At: Jason Rumney wrote: > >> Ok, here comes the diff. > > It seems that the point of this diff is to make the validation code of > nxml-mode ignore certain chunks of invalid XML within the buffer, is > that right? Yes. > If so, then XML already has a mechanism for telling parsers not to parse > a block of text: , though you may need to customize the > face that is used to display the contents to avoid conflict with the > other mode that you intend to use on its contents. It is not supposed to be used in that context. Think PHP, Jsp, Smarty, EmbPerl or any other xhtml template language. The files are simply not valid XML, but parts of them can still be parsed by the nxml-mode parser. This allows both error checking and XHTML completion.