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: Fri, 21 Jul 2006 14:45:27 -0700
User-agent: Pan/0.14.2.91 (As She Crawled Across the Table)

On Fri, 21 Jul 2006 16:52:37 -0400, Thien-Thi Nguyen wrote:

> JD Smith <address@hidden> writes:
> 
>> I'm parsing a very large XML file
>> [...]
>> never loaded into an active buffer
> 
> do you use `xml-parse-file' w/ a FILE that refers to a file not currently
> visited (in a buffer)?  looks like `xml-parse-file' uses `find-file' to
> handle that case.  maybe something like the following would give better
> results?

This is similar to the improved method Richard proposed yesterday
(insert-file-contents using a temporary buffer).  Remarkably enough
(and highly surprising to me), even inserting the XML file contents in
a temporary buffer is enough to get '(fontified nil) text properties
added all over, which xml-parse-file dutifully returns (unless
modified with *-no-properties).

JD






reply via email to

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