From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: mah@everybody.org (Mark A. Hershberger) Newsgroups: gmane.emacs.devel Subject: Re: xml.el bug Date: Thu, 07 Oct 2004 13:58:21 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <87r7oa4dhe.fsf@weblog.localhost> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1417141138==" X-Trace: sea.gmane.org 1097171930 30051 80.91.229.6 (7 Oct 2004 17:58:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2004 17:58:50 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 07 19:58:37 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CFcXF-000250-00 for ; Thu, 07 Oct 2004 19:58:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFcdy-0002jn-TB for ged-emacs-devel@m.gmane.org; Thu, 07 Oct 2004 14:05:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFcdp-0002jh-BJ for emacs-devel@gnu.org; Thu, 07 Oct 2004 14:05:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFcdo-0002jU-Ph for emacs-devel@gnu.org; Thu, 07 Oct 2004 14:05:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFcdo-0002jR-No for emacs-devel@gnu.org; Thu, 07 Oct 2004 14:05:24 -0400 Original-Received: from [64.124.179.97] (helo=superman.everybody.org) by monty-python.gnu.org with esmtp (TLSv1:RC4-SHA:128) (Exim 4.34) id 1CFcWw-0006F8-Q1 for emacs-devel@gnu.org; Thu, 07 Oct 2004 13:58:20 -0400 Original-Received: from [24.152.207.156] (helo=weblog.localhost) by superman.everybody.org with asmtp (Exim 4.34) id 1CFcWv-0003iT-US for emacs-devel@gnu.org; Thu, 07 Oct 2004 12:58:18 -0500 Original-To: emacs-devel@gnu.org X-URL: http://mah.everybody.org/weblog/ User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) In-Reply-To: (Katsumi Yamaoka's message of "Thu, 07 Oct 2004 10:06:56 +0900") 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28050 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28050 --===============1417141138== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= (Previous off-list reply said I had already checked in a fix for this. I was wrong.) Katsumi Yamaoka writes: > (xml-substitute-special "The chief of Guinea-Bissau's army is killed > by rebel soldiers in what is described as a "revolt" over > unpaid wages.") The following patch backs out some changes I made to deal with xml entities that expand into XML. It should fix the problem till I can get external entities to work. --- xml.el 05 Oct 2004 20:48:38 -0400 1.37 +++ xml.el 07 Oct 2004 13:49:45 -0400 @@ -727,14 +727,9 @@ (match-string 1 this-part))))))) (cond ((null children) - (if (and (eq (length expansion) 1) - (stringp (cadr expansion))) - (setq children (concat prev-part expansion)) - (if (stringp (car expansion)) + ;; FIXME: If we have an entity that expands into XML, this won't work. (setq children - (list (concat prev-part (car expansion)) - (append (cdr expansion)))) - (setq children (append expansion prev-part))))) + (concat prev-part expansion))) ((stringp children) (if (stringp expansion) (setq children (concat children prev-part expansion)) -- A choice between one man and a shovel, or a dozen men with teaspoons is clear to me, and I'm sure it is clear to you also. -- Zimran Ahmed --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBZYO9c17xCi38v/URAp1uAJ9hae130LAE8CN9k5W2Y1MOwM8fFQCgzcJw yEy4jLApb3fXmbUyPP/7bY8= =GPUe -----END PGP SIGNATURE----- --=-=-=-- --===============1417141138== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1417141138==--