From: Chong Yidong <cyd@gnu.org>
To: Matt Price <matt.price@utoronto.ca>
Cc: 12227@debbugs.gnu.org
Subject: bug#12227: 24.1.50; xml.el: xml-entity-alist is pre-ecaped!
Date: Sun, 19 Aug 2012 12:13:14 +0800 [thread overview]
Message-ID: <87pq6no6xx.fsf@gnu.org> (raw)
In-Reply-To: <502FC1A0.6040101@utoronto.ca> (Matt Price's message of "Sat, 18 Aug 2012 12:24:00 -0400")
Matt Price <matt.price@utoronto.ca> 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;'.
prev parent reply other threads:[~2012-08-19 4:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-18 16:24 bug#12227: 24.1.50; xml.el: xml-entity-alist is pre-ecaped! Matt Price
2012-08-19 4:13 ` Chong Yidong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pq6no6xx.fsf@gnu.org \
--to=cyd@gnu.org \
--cc=12227@debbugs.gnu.org \
--cc=matt.price@utoronto.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.