unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mark A. Hershberger" <mah@layover.com>
Cc: yamaoka@jpl.org, ascott@sedona.ch.intel.com, bugs@gnus.org
Subject: Re: nnrss-node-just-text: Wrong type argument: sequencep, 62
Date: Tue, 30 Nov 2004 23:48:02 -0500	[thread overview]
Message-ID: <41AD4D02.2060008@layover.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1001 bytes --]

> (with-temp-buffer
>   (insert "<rss><![CDATA[ding]]></rss>")
>   (xml-parse-region (point-min) (point-max)))
>  => ((rss nil "ding"))
> 
> (with-temp-buffer
>   (insert "<rss> <![CDATA[ding]]> </rss>")
>   (xml-parse-region (point-min) (point-max)))
>  => ((rss nil " " 32 103 110 105 100))
> 
> The latter case seems to have returned a mirrored string as
> characters:
> 
> (concat '(32 103 110 105 100))
>  => " gnid"
> 
> Is it the intended behavior?

No.

Patch (beware the line wraps):

--- xml.el	7 Oct 2004 18:13:43 -0000	1.39
+++ xml.el	1 Dec 2004 04:44:50 -0000
@@ -371,7 +371,9 @@
        (let ((pos (match-end 0)))
  	(unless (search-forward "]]>" nil t)
  	  (error "XML: (Not Well Formed) CDATA section does not end anywhere 
in the document"))
-	(buffer-substring pos (match-beginning 0))))
+	(concat
+	 (buffer-substring pos (match-beginning 0))
+	 (xml-parse-string))))
       ;;  DTD for the document
       ((looking-at "<!DOCTYPE")
        (let ((dtd (xml-parse-dtd parse-ns)))



[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2004-12-01  4:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-01  4:48 Mark A. Hershberger [this message]
2004-12-01  6:23 ` nnrss-node-just-text: Wrong type argument: sequencep, 62 Katsumi Yamaoka
     [not found] <gfbvfbonqhs.fsf@chlr4917.ch.intel.com>
2004-11-30 12:38 ` Katsumi Yamaoka
2004-11-30 16:44   ` Mark A. Hershberger

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=41AD4D02.2060008@layover.com \
    --to=mah@layover.com \
    --cc=ascott@sedona.ch.intel.com \
    --cc=bugs@gnus.org \
    --cc=yamaoka@jpl.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).