summaryrefslogtreecommitdiff
path: root/lisp/nxml/xsd-regexp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/nxml/xsd-regexp.el')
-rw-r--r--lisp/nxml/xsd-regexp.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/nxml/xsd-regexp.el b/lisp/nxml/xsd-regexp.el
index 0cb4d3fdf2f..64ed5f62cfe 100644
--- a/lisp/nxml/xsd-regexp.el
+++ b/lisp/nxml/xsd-regexp.el
@@ -710,8 +710,7 @@ whose value is a range-list."
"Use a UnicodeData file to generate code to initialize Unicode categories.
Code is inserted into the current buffer."
(interactive "fUnicodeData file: ")
- (save-excursion
- (set-buffer (find-file-noselect file))
+ (with-current-buffer (find-file-noselect file)
(goto-char (point-min))
(mapc (lambda (x) (put x 'xsdre-ranges nil)) xsdre-gen-categories)
(while (re-search-forward "^\\([0-9A-Fa-f]*\\);[^;]*;\\([A-Z][a-z]\\);"