X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ae940284fa77a6928f5162b7de859e67bdc7506c..95a2cb24b0697558e6629460d8bc693b394f0138:/lisp/nxml/rng-loc.el diff --git a/lisp/nxml/rng-loc.el b/lisp/nxml/rng-loc.el index 5207d7aa5e..601e54aeef 100644 --- a/lisp/nxml/rng-loc.el +++ b/lisp/nxml/rng-loc.el @@ -1,9 +1,9 @@ ;;; rng-loc.el --- locate the schema to use for validation -;; Copyright (C) 2003, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 2003, 2007-2015 Free Software Foundation, Inc. ;; Author: James Clark -;; Keywords: XML, RelaxNG +;; Keywords: wp, hypermedia, languages, XML, RelaxNG ;; This file is part of GNU Emacs. @@ -48,7 +48,7 @@ It is nil if using a vacuous schema.") "Schema for schema locating files or nil if not yet loaded.") (defcustom rng-schema-locating-files rng-schema-locating-files-default - "*List of schema locating files." + "List of schema locating files." :type '(repeat file) :group 'relax-ng) @@ -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) @@ -547,5 +546,4 @@ saved to the first writable file in `rng-schema-locating-files'." (provide 'rng-loc) -;; arch-tag: 725cf968-37a2-418b-b47b-d5209871a9ab ;;; rng-loc.el ends here