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.bugs Subject: xml.el can't handle some doctypes Date: Mon, 10 Mar 2003 16:55:25 -0600 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87r89en86a.fsf@batman.everybody.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047337045 30650 80.91.224.249 (10 Mar 2003 22:57:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2003 22:57:25 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 10 23:57:23 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 18sWCw-0007xn-00 for ; Mon, 10 Mar 2003 23:57:22 +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 18sWDS-0000Xq-09 for gnu-bug-gnu-emacs@m.gmane.org; Mon, 10 Mar 2003 17:57:54 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18sWD2-00009W-00 for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2003 17:57:28 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18sWBh-0007iL-00 for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2003 17:56:05 -0500 Original-Received: from batman.everybody.org ([66.93.249.200]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18sWB4-0007W5-00 for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2003 17:55:26 -0500 Original-Received: from mah by batman.everybody.org with local (Exim 3.34 #1 (Debian)) id 18sWB3-0005AE-00 for ; Mon, 10 Mar 2003 16:55:25 -0600 Original-To: bug-gnu-emacs@gnu.org 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:4591 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4591 Parsing the following valid XML causes an "XML: Invalid character": %HTMLlat1; ]> Following patch fixes the problem: *** lisp/xml.el-orig Mon Mar 10 16:53:06 2003 --- lisp/xml.el Mon Mar 10 16:52:53 2003 *************** *** 323,328 **** --- 323,329 ---- (condition-case nil (progn (forward-word 1) ;; name of the document + (goto-char (- (re-search-forward "[[:space:]]") 1)) (goto-char (- (re-search-forward "[^[:space:]]") 1)) (if (looking-at "\\[") (re-search-forward "\\][[:space:]]*>" end) Diff finished at Mon Mar 10 16:53:15