From: mah@everybody.org (Mark A. Hershberger)
Cc: emacs-w3m@namazu.org, emacs-devel@gnu.org
Subject: Re: Refactoring xml.el namespace handling
Date: Fri, 16 Apr 2004 15:05:40 -0500 [thread overview]
Message-ID: <87vfjzvgbv.fsf@weblog.localhost> (raw)
In-Reply-To: <b9ysmf4sjfl.fsf@jpl.org> (Katsumi Yamaoka's message of "Fri, 16 Apr 2004 12:14:38 +0900")
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> (with-temp-buffer
> (insert "<rdf:RDF>\n</rdf:RDF>\n")
> (goto-char (point-min))
> (xml-parse-tag))
For me this gives: (rdf:RDF nil "\n") which, I suppose, means that I
need to try to get some more patches committed.
In any case, here is a patch against current CVS that fixes the
problem:
2004-04-16 Mark A. Hershberger <mah@everybody.org>
* xml.el (xml-parse-tag): Avoid overwriting node-name.
--- xml.el.~1.31.~ 2004-04-16 14:56:46.000000000 -0500
+++ xml.el 2004-04-16 15:01:22.000000000 -0500
@@ -325,10 +325,8 @@
(push (cons (cdar attr) (intern (concat ":" (cdr attr))))
xml-ns))))
- ;; expand element names
- (setq node-name (list (xml-maybe-do-ns node-name "" xml-ns)))
+ (setq children (list attrs (xml-maybe-do-ns node-name "" xml-ns)))
- (setq children (list attrs node-name))
;; is this an empty element ?
(if (looking-at "/>")
(progn
--
A choice between one man and a shovel, or a dozen men with teaspoons
is clear to me, and I'm sure it is clear to you also.
-- Zimran Ahmed <http://www.winterspeak.com/>
next prev parent reply other threads:[~2004-04-16 20:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-05 19:03 Refactoring xml.el namespace handling Mark A. Hershberger
2004-03-05 19:29 ` Stefan Monnier
2004-04-14 18:36 ` Stefan Monnier
2004-04-16 3:14 ` Katsumi Yamaoka
2004-04-16 20:05 ` Mark A. Hershberger [this message]
2004-04-16 22:27 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2004-03-01 15:59 Mark A. Hershberger
2004-03-02 21:52 ` Stefan Monnier
2004-03-03 6:35 ` Mark A. Hershberger
2004-03-04 17:50 ` Stefan Monnier
2004-03-04 17:52 ` Stefan Monnier
2004-03-08 1:33 ` Kim F. Storm
2004-03-08 4:06 ` Mark A. Hershberger
2004-03-12 9:57 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vfjzvgbv.fsf@weblog.localhost \
--to=mah@everybody.org \
--cc=emacs-devel@gnu.org \
--cc=emacs-w3m@namazu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).