From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Problems with xml-parse-string Date: Tue, 14 Sep 2010 19:11:43 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284487927 21252 80.91.229.12 (14 Sep 2010 18:12:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Sep 2010 18:12:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 14 20:12:06 2010 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.69) (envelope-from ) id 1OvZzA-0007e3-Fc for ged-emacs-devel@m.gmane.org; Tue, 14 Sep 2010 20:12:04 +0200 Original-Received: from localhost ([127.0.0.1]:38776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvZz9-0008Ex-Jc for ged-emacs-devel@m.gmane.org; Tue, 14 Sep 2010 14:12:03 -0400 Original-Received: from [140.186.70.92] (port=53338 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvZz4-0008Eh-4E for emacs-devel@gnu.org; Tue, 14 Sep 2010 14:11:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvZz3-0003HA-1O for emacs-devel@gnu.org; Tue, 14 Sep 2010 14:11:58 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:33910) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvZz2-0003Gw-RC for emacs-devel@gnu.org; Tue, 14 Sep 2010 14:11:56 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OvZyy-0007XA-En for emacs-devel@gnu.org; Tue, 14 Sep 2010 20:11:52 +0200 Original-Received: from cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com ([86.9.122.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Sep 2010 20:11:52 +0200 Original-Received: from sdl.web by cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Sep 2010 20:11:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+ vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMO DhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QH w/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnY DQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V 7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ7 0hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloe m/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.4) Cancel-Lock: sha1:TMmbkMNKclaWrn7pQ7jgmpbAzUU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:130139 Archived-At: Hello, xml-parse-string is already defined in xml.el. How about rename these two primitives to parse-html-string and parse-xml-string? xml.el and the primitive xml-parse-string do not return the same structure. But I don't know which one is better. I use the primitive in a function like this (defun test () (xml-parse-string (buffer-substring (point) (point-max)))) Somehow it can return the symbol `buffer-substring' or 'edebug-after', after alternating C-u C-M-x and C-M-x that function. Unfortunately I can't find a way to reliably reproduce it. Any wild guess where the problem might be? Passing an empty string (xml-parse-string "") returns #, is this normal? Leo