From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: Re: xml.el patches for better spec compliance Date: Sat, 15 Mar 2003 00:51:56 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030315004948.2E91.LEKTU@terra.es> References: <87r89bfbbd.fsf@superman.everybody.org> <87adfxq1bu.fsf@superman.everybody.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1047685979 10089 80.91.224.249 (14 Mar 2003 23:52:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2003 23:52:59 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 15 00:52:58 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18tyyv-0002cb-00 for ; Sat, 15 Mar 2003 00:52:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tyyG-0004ua-01 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 14 Mar 2003 18:52:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18tyy1-0004uB-00 for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2003 18:52:01 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18tyy0-0004tQ-00 for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2003 18:52:00 -0500 Original-Received: from smtp.terra.es ([213.4.129.129] helo=tsmtp5.mail.isp) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tyxz-0004sX-00 for bug-gnu-emacs@gnu.org; Fri, 14 Mar 2003 18:51:59 -0500 Original-Received: from [80.36.30.211] ([80.36.30.211]) by tsmtp5.mail.isp (terra.es) with ESMTP id HBRJMJ00.W0S; Sat, 15 Mar 2003 00:51:55 +0100 Original-To: mah@everybody.org (Mark A. Hershberger) In-Reply-To: <87adfxq1bu.fsf@superman.everybody.org> X-Mailer: Becky! ver. 2.05.10 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4616 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4616 On Fri, 14 Mar 2003 11:56:21 -0600, mah@everybody.org (Mark A. Hershberger) wrote: > + (while (string-match "&#\\([0-9]+\\);" string) > + (setq string (replace-match (xml-ucs-to-string > + (string-to-int > + (match-string-no-properties 1 string))) > + t nil string))) > + (while (string-match "&#x\\([0-9a-fA-F]+\\);" string) > + (setq string (replace-match (xml-ucs-to-string > + (hex-string-to-number > + (match-string-no-properties 1 string))) > + t nil string))) > + hex-string-to-number still doesn't exists, but you can use (string-to-number (match-string-no-properties 1 string) 16) /L/e/k/t/u