From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juliusz Chroboczek Newsgroups: gmane.emacs.devel Subject: Re: xml-parse-region broken? Date: Fri, 01 Sep 2006 15:50:44 +0200 Message-ID: <7ik64nzoej.fsf@lanthane.pps.jussieu.fr> References: <7iwt8ol9u6.fsf@lanthane.pps.jussieu.fr> <7iy7t4fhoo.fsf@lanthane.pps.jussieu.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157129474 17812 80.91.229.2 (1 Sep 2006 16:51:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Sep 2006 16:51:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 01 18:51:13 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GJCEG-0007Ow-Fy for ged-emacs-devel@m.gmane.org; Fri, 01 Sep 2006 18:50:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJCEF-0000D1-RR for ged-emacs-devel@m.gmane.org; Fri, 01 Sep 2006 12:50:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJ9Q4-0002q6-On for emacs-devel@gnu.org; Fri, 01 Sep 2006 09:50:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJ9Q2-0002pD-8r for emacs-devel@gnu.org; Fri, 01 Sep 2006 09:50:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJ9Q2-0002pA-3M for emacs-devel@gnu.org; Fri, 01 Sep 2006 09:50:50 -0400 Original-Received: from [134.157.0.129] (helo=shiva.jussieu.fr) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GJ9Zs-0005cK-DT for emacs-devel@gnu.org; Fri, 01 Sep 2006 10:01:00 -0400 Original-Received: from hydrogene.pps.jussieu.fr (hydrogene.pps.jussieu.fr [134.157.168.1]) by shiva.jussieu.fr (8.13.7/jtpda-5.4) with ESMTP id k81DokAA071543 ; Fri, 1 Sep 2006 15:50:46 +0200 (CEST) X-Ids: 165 Original-Received: from lanthane.pps.jussieu.fr (Debian-exim@lanthane.pps.jussieu.fr [134.157.168.57]) by hydrogene.pps.jussieu.fr (8.13.4/jtpda-5.4) with ESMTP id k81DoiTQ030143 ; Fri, 1 Sep 2006 15:50:45 +0200 Original-Received: from jch by lanthane.pps.jussieu.fr with local (Exim 4.62) (envelope-from ) id 1GJ9Pw-0003O8-Q2; Fri, 01 Sep 2006 15:50:44 +0200 Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Thu, 31 Aug 2006 22:35:35 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (shiva.jussieu.fr [134.157.0.165]); Fri, 01 Sep 2006 15:50:47 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.2/1784/Fri Sep 1 14:00:05 2006 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at shiva.jussieu.fr with ID 44F83AB6.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Mailman-Approved-At: Fri, 01 Sep 2006 12:50:41 -0400 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:59226 Archived-At: >>>> (require 'xml) >>>> (with-temp-buffer >>>> (insert "\n\n") >>>> (xml-parse-region 1 (point-max))) >>>> With 21.4.1, this gives ((a nil)). With 22.0.50.1 (Debian version >>>> 1:20060824-1), it gives ((a nil "\n")). > I understood this part, but I don't know in what sense is the new > behavior broken. The text bracketed by ... is indeed "\n", > isn't it? Hmm... yes, you're right. As the comments in xml.el say > ;; Whitespace is preserved. Fixme: There should be a tree-walker that > ;; can remove it. Fine, then, I'm coding for the new interface now. What's the canonical way to detect at runtime which interface is implemented? Thanks, Juliusz