From: Thien-Thi Nguyen <ttn@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: xml-parse-file and text properties
Date: 21 Jul 2006 16:52:37 -0400 [thread overview]
Message-ID: <jkwta6el4a.fsf@glug.org> (raw)
In-Reply-To: <pan.2006.07.21.17.34.25.210891@as.arizona.edu>
JD Smith <jdsmith@as.arizona.edu> 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?
thi
________________________________________________________
*** xml.el 6 Feb 2006 14:33:36 -0000 1.53
--- xml.el 21 Jul 2006 20:46:44 -0000
***************
*** 170,177 ****
(progn
(set-buffer (get-file-buffer file))
(setq keep (point)))
! (let (auto-mode-alist) ; no need for xml-mode
! (find-file file)))
(let ((xml (xml-parse-region (point-min)
(point-max)
--- 170,177 ----
(progn
(set-buffer (get-file-buffer file))
(setq keep (point)))
! (set-buffer (generate-new-buffer " *xml work*"))
! (insert-file-contents file))
(let ((xml (xml-parse-region (point-min)
(point-max)
next prev parent reply other threads:[~2006-07-21 20:52 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-18 21:35 xml-parse-file and text properties JD Smith
2006-07-20 21:46 ` Richard Stallman
2006-07-20 22:11 ` JD Smith
2006-07-21 4:46 ` Richard Stallman
2006-07-21 6:35 ` Kenichi Handa
2006-07-21 7:24 ` Eli Zaretskii
2006-07-21 8:14 ` Kenichi Handa
2006-07-22 4:39 ` Richard Stallman
2006-07-21 16:13 ` Kevin Rodgers
2006-07-21 23:33 ` Kevin Rodgers
2006-07-20 21:46 ` Richard Stallman
2006-07-20 22:40 ` JD Smith
2006-07-21 12:55 ` Stefan Monnier
2006-07-21 17:34 ` JD Smith
2006-07-21 20:22 ` Stefan Monnier
2006-07-21 21:50 ` JD Smith
2006-07-22 15:49 ` Richard Stallman
2006-07-24 1:51 ` Kenichi Handa
2006-07-24 3:17 ` Stefan Monnier
2006-07-24 4:36 ` Kenichi Handa
2006-07-24 18:22 ` Richard Stallman
2006-07-24 20:38 ` Stuart D. Herring
2006-07-25 3:09 ` Richard Stallman
2006-07-25 14:00 ` Stefan Monnier
2006-07-25 22:15 ` Richard Stallman
2006-07-24 20:51 ` Stefan Monnier
2006-07-25 3:09 ` Richard Stallman
2006-07-21 20:52 ` Thien-Thi Nguyen [this message]
2006-07-21 21:45 ` JD Smith
2006-07-22 9:15 ` Eli Zaretskii
2006-07-24 16:44 ` JD Smith
2006-07-25 16:05 ` JD Smith
2006-07-25 16:27 ` Stefan Monnier
2006-07-25 19:16 ` JD Smith
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jkwta6el4a.fsf@glug.org \
--to=ttn@gnu.org \
--cc=emacs-devel@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.