From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#12227: 24.1.50; xml.el: xml-entity-alist is pre-ecaped! Date: Sun, 19 Aug 2012 12:13:14 +0800 Message-ID: <87pq6no6xx.fsf@gnu.org> References: <502FC1A0.6040101@utoronto.ca> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345349642 30931 80.91.229.3 (19 Aug 2012 04:14:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2012 04:14:02 +0000 (UTC) Cc: 12227@debbugs.gnu.org To: Matt Price Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 19 06:14:02 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T2wtm-0006bp-7X for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Aug 2012 06:14:02 +0200 Original-Received: from localhost ([::1]:45480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2wtk-0004jH-Um for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Aug 2012 00:14:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2wti-0004j1-0Y for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2012 00:13:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2wth-0008FE-2Y for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2012 00:13:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2wtg-0008FA-Uu for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2012 00:13:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T2wtl-0001bm-Vz for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2012 00:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Aug 2012 04:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12227 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12227-submit@debbugs.gnu.org id=B12227.13453496106138 (code B ref 12227); Sun, 19 Aug 2012 04:14:01 +0000 Original-Received: (at 12227) by debbugs.gnu.org; 19 Aug 2012 04:13:30 +0000 Original-Received: from localhost ([127.0.0.1]:38117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2wtG-0001ax-4h for submit@debbugs.gnu.org; Sun, 19 Aug 2012 00:13:30 -0400 Original-Received: from mail-pb0-f44.google.com ([209.85.160.44]:49184) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2wtD-0001ap-PG for 12227@debbugs.gnu.org; Sun, 19 Aug 2012 00:13:29 -0400 Original-Received: by pbbrr4 with SMTP id rr4so6722422pbb.3 for <12227@debbugs.gnu.org>; Sat, 18 Aug 2012 21:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=t+GK0gQWNnyfZbmijSS9lMwX/zafSz/aOr4tt8WEtxQ=; b=dVmj6SKq3e7UXVGLXrS8N8uJJqb2cgCdcSv1Er0UxGoeBR6b6wIuF/5+nL4Lo+JMT7 GgllbXD9RvCc6r+kQgZY9Uo6z/08L5NSa8hPPPmXfhdaou1EXTLEDIdkh12utLBlZnkP 6dhTaDroLq4kLuyLg7aju10ThntYfW+vQtZw84MJX5nKeHKqFRzu6rxVh8hDOo+kVBYY 8SbaGutOoOOFgY7OmY8gTT2hUmRkXiDnj//8Fq6885eGE7IaHG/ORrbGSu0C6hoKrbXl sbvpqkvFM32KsGFEwUVfzl+oHDxDjtm59sTqwEXxe/rb40x5+FHQ8ZPP9wy4nLNUZeAN yQNA== Original-Received: by 10.66.85.70 with SMTP id f6mr20521915paz.7.1345349600113; Sat, 18 Aug 2012 21:13:20 -0700 (PDT) Original-Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id uy3sm7616479pbc.29.2012.08.18.21.13.17 (version=SSLv3 cipher=OTHER); Sat, 18 Aug 2012 21:13:19 -0700 (PDT) In-Reply-To: <502FC1A0.6040101@utoronto.ca> (Matt Price's message of "Sat, 18 Aug 2012 12:24:00 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63283 Archived-At: Matt Price writes: > Unfortunately the current version of xml.el has two of the entities > pre-escaped: > > (defvar xml-entity-alist > '(("lt" . "<") > ("gt" . ">") > ("apos" . "'") > ("quot" . "\"") > ("amp" . "&")) > "Alist mapping XML entities to their replacement text.") > > this creates invalid xml output. Please provide an example of why you think this is a bug. > ("amp" . "&")) This would be wrong. XML entity substitution is recursive, so the above would cause `AT&T;' to expand to `AT&T;', and then further substitution would fail since there is no entity `&T;' defined. The way it is set up now, `AT&T;' expands to `AT&T;', which finally gives the literal text `AT&T;'.