emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xml-parse-file and text properties


From: JD Smith
Subject: Re: xml-parse-file and text properties
Date: Thu, 20 Jul 2006 15:11:01 -0700

On Thu, 2006-07-20 at 17:46 -0400, Richard Stallman wrote:
> Does this fix it?
> 
> *** xml.el    07 Feb 2006 18:16:17 -0500      1.53
> --- xml.el    20 Jul 2006 16:24:41 -0400      
> ***************
> *** 409,415 ****
>       (unless (search-forward "]]>" nil t)
>         (error "XML: (Not Well Formed) CDATA section does not end anywhere in 
> the document"))
>       (concat
> !      (buffer-substring pos (match-beginning 0))
>        (xml-parse-string))))
>        ;;  DTD for the document
>        ((looking-at "<!DOCTYPE")

This doesn't fix the problem, which is likely due to all the
match-string's still scattered throughout.  If I heavy-handedly replace
all of the match-string's with match-string-no-properties, it does fix
it.

However, Mark did identify this comment someone left in the header
material:

;; Note that {buffer-substring,match-string}-no-properties were
;; formerly used in several places, but that removes composition info.

but neither of us were clear on the meaning of the statement, or why
retaining text properties in any XML parsed data would be desirable.  






reply via email to

[Prev in Thread] Current Thread [Next in Thread]