Function: rng-auto-set-schema

rng-auto-set-schema is an interactive and byte-compiled function defined in rng-loc.el.gz.

Signature

(rng-auto-set-schema &optional NO-DISPLAY-ERROR)

Documentation

Set the schema for this buffer based on the buffer's contents and file-name.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/nxml/rng-loc.el.gz
(defun rng-auto-set-schema (&optional no-display-error)
  "Set the schema for this buffer based on the buffer's contents and file-name."
  (interactive)
  (condition-case err
      (progn
	(rng-set-schema-file-1 (rng-locate-schema-file))
	(rng-what-schema))
    (nxml-file-parse-error
     (if no-display-error
	 (error "%s at position %s in %s"
		(nth 3 err)
		(nth 2 err)
		(abbreviate-file-name (nth 1 err)))
       (nxml-display-file-parse-error err)))))