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: Should nXML be included Date: Tue, 12 Jun 2007 14:57:06 +0200 Message-ID: <466E9822.2050508@gmail.com> References: <466E7A93.3050705@gmail.com> <466E81AA.3030202@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: sea.gmane.org 1181653070 29728 80.91.229.12 (12 Jun 2007 12:57:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2007 12:57:50 +0000 (UTC) Cc: emacs-devel@gnu.org, Leo , "Eric M. Ludlam" To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 12 14:57:48 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 1Hy5wS-00027K-3i for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2007 14:57:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy5wR-0003s8-Pk for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2007 08:57:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy5vs-000353-3O for emacs-devel@gnu.org; Tue, 12 Jun 2007 08:57:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy5vq-00033X-UE for emacs-devel@gnu.org; Tue, 12 Jun 2007 08:57:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy5vq-00033M-Ov for emacs-devel@gnu.org; Tue, 12 Jun 2007 08:57:10 -0400 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 1Hy5vp-0005BU-Ep; Tue, 12 Jun 2007 08:57:09 -0400 Original-Received: from c83-254-133-189.bredband.comhem.se ([83.254.133.189]:61503 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1Hy5vn-0003JZ-86; Tue, 12 Jun 2007 14:57:08 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666 In-Reply-To: <466E81AA.3030202@gnu.org> X-Antivirus: avast! (VPS 000748-3, 2007-06-11), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.133.189 X-Scan-Result: No virus found in message 1Hy5vn-0003JZ-86. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Hy5vn-0003JZ-86 8ce4d554c11a6a30e7939f76c835d17a X-detected-kernel: 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:72680 Archived-At: Jason Rumney wrote: > Lennart Borgman (gmail) wrote: >> nXml is very good and I hope it will be included in Emacs. However >> there are reasons to break it up. I think the parsing code somehow >> should be broken up so that it can work for cases where the buffer is >> divided into multiple major modes. > > I think what you really mean is that you want to use nxml-mode to edit > non-xml files. Is that right? The problem I see with this is that the > power of nxml-mode compared to psgml and sgml modes is that it deals > with strict xml, and deals with it well. As soon as you start ripping > out features to support non-XML documents, you're back to a general SGML > mode and the compromises that brings. Yes, you are right, I want to edit non-xml files. But I think the power of nxml-mode can still be used. The parser provides to things: Validation and completion. Validation of course loose most of its meanings, but not all. Completion can still be used. In fact that is what I do in nXhtml with nxhtml-mode + mumamo-mode. To be able to make it more cleanly than currently the parser must be broken out. > If you really want to create PHP in an XML file, you need to use CDATA > blocks to tell the XML parser to ignore the invalid tags in that block. > >