summaryrefslogtreecommitdiff
path: root/lisp/nxml/rng-loc.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2009-11-05 21:01:32 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2009-11-05 21:01:32 +0000
commit2adaf05797dbf20e645f0357dcf22fe308ae7bbe (patch)
tree8886c6e992f0fd1652ac5dc61264f5c37899cd6b /lisp/nxml/rng-loc.el
parent81ad75af15f169655ba4c8eada78782367cabbf0 (diff)
downloademacs-2adaf05797dbf20e645f0357dcf22fe308ae7bbe.tar.gz
* nxml/xsd-regexp.el (xsdre-gen-categories):
* nxml/xmltok.el (xmltok-parse-entity): * nxml/rng-parse.el (rng-parse-validate-file): * nxml/rng-maint.el (rng-format-manual, rng-manual-output-force-new-line): * nxml/rng-loc.el (rng-save-schema-location-1): * nxml/rng-cmpct.el (rng-c-parse-file): * nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set): * nxml/nxml-parse.el (nxml-parse-file): Use with-current-buffer.
Diffstat (limited to 'lisp/nxml/rng-loc.el')
-rw-r--r--lisp/nxml/rng-loc.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/nxml/rng-loc.el b/lisp/nxml/rng-loc.el
index 5207d7aa5e4..84ee27a44f1 100644
--- a/lisp/nxml/rng-loc.el
+++ b/lisp/nxml/rng-loc.el
@@ -508,8 +508,7 @@ saved to the first writable file in `rng-schema-locating-files'."
"schema location")
file)))))
(t
- (save-excursion
- (set-buffer (find-file-noselect file))
+ (with-current-buffer (find-file-noselect file)
(let ((modified (buffer-modified-p)))
(if (> (buffer-size) 0)
(let (xmltok-dtd)