From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] xml-debug-print-internal needs to quote attributes and text Date: Thu, 20 Dec 2007 19:33:00 -0500 Message-ID: References: <87abo8vftm.fsf@everybody.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1198197198 9190 80.91.229.12 (21 Dec 2007 00:33:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Dec 2007 00:33:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: mah@everybody.org (Mark A. Hershberger) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 21 01:33:30 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 1J5VpP-0006Y5-Ah for ged-emacs-devel@m.gmane.org; Fri, 21 Dec 2007 01:33:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5Vp5-0004Ci-H5 for ged-emacs-devel@m.gmane.org; Thu, 20 Dec 2007 19:33:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J5Vp0-00049M-U5 for emacs-devel@gnu.org; Thu, 20 Dec 2007 19:33:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J5Voz-00047X-Pj for emacs-devel@gnu.org; Thu, 20 Dec 2007 19:33:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5Voz-00046k-DR for emacs-devel@gnu.org; Thu, 20 Dec 2007 19:33:01 -0500 Original-Received: from bas-flu-bbcs-dynip-199-119.vtx.ch ([83.228.199.119] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J5Voz-0003dX-4d for emacs-devel@gnu.org; Thu, 20 Dec 2007 19:33:01 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 39802B40F3; Thu, 20 Dec 2007 19:33:00 -0500 (EST) In-Reply-To: <87abo8vftm.fsf@everybody.org> (Mark A. Hershberger's message of "Mon, 17 Dec 2007 22:31:49 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: 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:85321 Archived-At: >> Load xml.el to define `xml-debug-print' and evaluate the following: >> >> (xml-debug-print >> '((foo ((attr . " & \"\"")) " & \"\""))) > Fixed by creating xml-escape-string and using it in xml-debug-print. Note that the name `xml-debug-print' indicates clearly that this is not intended to be used as a real printer function. So if it's not the case any more, it should be renamed to `xml-print' or somesuch. Stefan