summaryrefslogtreecommitdiff
path: root/lisp/nxml/rng-cmpct.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-cmpct.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-cmpct.el')
-rw-r--r--lisp/nxml/rng-cmpct.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/nxml/rng-cmpct.el b/lisp/nxml/rng-cmpct.el
index f357633c2e9..d9e29003497 100644
--- a/lisp/nxml/rng-cmpct.el
+++ b/lisp/nxml/rng-cmpct.el
@@ -348,8 +348,7 @@ OVERRIDE is either nil, require or t."
(defvar rng-c-file-index nil)
(defun rng-c-parse-file (filename &optional context)
- (save-excursion
- (set-buffer (get-buffer-create (rng-c-buffer-name context)))
+ (with-current-buffer (get-buffer-create (rng-c-buffer-name context))
(erase-buffer)
(rng-c-init-buffer)
(setq rng-c-file-name