unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: nnrss-node-just-text: Wrong type argument: sequencep, 62
@ 2004-12-01  4:48 Mark A. Hershberger
  2004-12-01  6:23 ` Katsumi Yamaoka
  0 siblings, 1 reply; 4+ messages in thread
From: Mark A. Hershberger @ 2004-12-01  4:48 UTC (permalink / raw)
  Cc: yamaoka, ascott, bugs


[-- 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-01  6:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <gfbvfbonqhs.fsf@chlr4917.ch.intel.com>
2004-11-30 12:38 ` nnrss-node-just-text: Wrong type argument: sequencep, 62 Katsumi Yamaoka
2004-11-30 16:44   ` Mark A. Hershberger
2004-12-01  4:48 Mark A. Hershberger
2004-12-01  6:23 ` Katsumi Yamaoka

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).