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 incorrectly parses empty elements Date: Thu, 15 May 2003 01:53:04 -0500 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87smrg66r3.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 1052982088 16808 80.91.224.249 (15 May 2003 07:01:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 15 May 2003 07:01:28 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 15 09:01:26 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 19GCjE-0004KW-00 for ; Thu, 15 May 2003 09:00:36 +0200 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 19GChc-0007TW-09 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 15 May 2003 02:58:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19GChS-0007TD-00 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 15 May 2003 02:58:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19GCe5-0006VD-00 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 15 May 2003 02:55:20 -0400 Original-Received: from horus.isnic.is ([193.4.58.12]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GCb4-0005CO-00 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 15 May 2003 02:52:25 -0400 Original-Received: from mail2.aus1.texas.net (mail2.aus1.texas.net [206.127.30.22]) by horus.isnic.is (8.12.9/8.12.9/isnic) with ESMTP id h4F6q7gO033684 for ; Thu, 15 May 2003 06:52:08 GMT (envelope-from news@giganews.com) Original-Received: from bin1.nnrp.aus1.giganews.com (bin1-2.nnrp.aus1.giganews.com [216.166.71.51])h4F6q6l09543 for ; Thu, 15 May 2003 01:52:06 -0500 (CDT) Original-Received: (from news@localhost) by bin1.nnrp.aus1.giganews.com (8.9.3+Sun/8.9.3) id BAA11603; Thu, 15 May 2003 01:52:06 -0500 (CDT) Original-Path: nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 15 May 2003 01:52:07 -0500 X-URL: http://mah.everybody.org/weblog/ User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:JQ9wZj7GeuMyzbQBp69+8ku/8gQ= Original-Lines: 35 Original-NNTP-Posting-Host: 66.93.249.200 Original-X-Trace: sv3-Pt6YaJckMjShFSGTfvSZhzZkKIPZ5NOgphBWi7I+kZzfeQFnURnqosAF/8tOJp3uYfyB1EYhXSGanjC!RtmekOohb19yjTvi0pNot2LPnkIjCfstHxKV8oZIcRJk5S4vekXbcdUUkpsv+ERmO76gd5qJifq+!6OEZpoA7z0piFt6QJQ== Original-X-Complaints-To: abuse@speakeasy.net X-DMCA-Complaints-To: abuse@speakeasy.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Newsgroups: gnu.emacs.bug Original-To: gnu-emacs-bug@moderators.isc.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:5057 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5057 xml.el parses ----> (this nil ("")) And ----> (this nil) Folling patch fixes the first one to match the second. *** xml.el.~1.7.4.1.~ Sat May 3 17:17:43 2003 --- xml.el Thu May 15 01:45:46 2003 *************** *** 227,233 **** (progn (forward-char 2) (skip-chars-forward " \t\n") ! (append children '(""))) ;; is this a valid start tag ? (if (eq (char-after) ?>) --- 227,233 ---- (progn (forward-char 2) (skip-chars-forward " \t\n") ! (append children nil)) ;; is this a valid start tag ? (if (eq (char-after) ?>) -- As long as you have mystery you have health; when you destroy mystery you create morbidity. -- G.K. Chesterson