%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/nxml/ |
Current File : //usr/local/share/emacs/27.2/lisp/nxml/rng-loc.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\207" [require nxml-util nxml-parse rng-parse rng-uri rng-util xmltok] 2) #@88 Filename of schema being used for current buffer. It is nil if using a vacuous schema. (defvar rng-current-schema-file-name nil (#$ . 568)) (make-variable-buffer-local 'rng-current-schema-file-name) #@57 Default value for variable `rng-schema-locating-files'. (defvar rng-schema-locating-files-default (byte-code "\301\302\303\"D\207" [data-directory "schemas.xml" expand-file-name "schema/schemas.xml"] 4) (#$ . 773)) #@51 File containing schema for schema locating files. (defvar rng-schema-locating-file-schema-file (expand-file-name "schema/locate.rnc" data-directory) (#$ . 995)) #@60 Schema for schema locating files or nil if not yet loaded. (defvar rng-schema-locating-file-schema nil (#$ . 1162)) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\207" [custom-declare-variable rng-schema-locating-files funcall function #[0 "\207" [rng-schema-locating-files-default] 1] "List of schema locating files." :type (repeat file) :group relax-ng] 8) #@56 Alist of schema extensions vs schema loader functions. (defvar rng-schema-loader-alist '(("rnc" . rng-c-load-schema)) (#$ . 1538)) (defvar rng-cached-document-element nil) (defvar rng-document-type-history nil) #@16 (fn TYPE-ID) (defalias 'rng-set-document-type #[257 "\3001% \211\301\230?\205# \302!\211\204 \303\304\"\210\305!\266\306\307\"\210\310 0\207\311!\207" [(nxml-file-parse-error) "" rng-locate-schema-file error "Could not locate schema for type id `%s'" rng-set-schema-file-1 rng-save-schema-location-1 t rng-what-schema nxml-display-file-parse-error] 5 (#$ . 1755) (byte-code "\300 C\207" [rng-read-type-id] 1)]) (defalias 'rng-read-type-id #[0 "\3011 \302 \303\304\305\306\307\"\303\310\303\311&)\2620\207\312!\207" [completion-ignore-case (nxml-file-parse-error) rng-possible-type-ids nil completing-read "Document type id: " mapcar #[257 "\211\300B\207" [nil] 3 "\n\n(fn X)"] t rng-document-type-history nxml-display-file-parse-error] 8]) #@491 Set the schema for the current buffer to the schema in FILENAME. FILENAME must be the name of a file containing a schema. The extension of FILENAME is used to determine what kind of schema it is. The variable `rng-schema-loader-alist' maps from schema extensions to schema loader functions. The function `rng-c-load-schema' is the loader for RELAX NG compact syntax. The association is between the buffer and the schema: the association is lost when the buffer is killed. (fn FILENAME) (defalias 'rng-set-schema-file #[257 "\3001 \301!\210\302\303!0\207\304!\207" [(nxml-file-parse-error) rng-set-schema-file-1 rng-save-schema-location-1 t nxml-display-file-parse-error] 4 (#$ . 2517) "fSchema file: "]) #@69 Set the schema for the current buffer to allow any well-formed XML. (defalias 'rng-set-vacuous-schema #[0 "\300\301!\210\302 \207" [rng-set-schema-file-1 nil rng-what-schema] 2 (#$ . 3234) nil]) #@17 (fn FILENAME) (defalias 'rng-set-schema-file-1 #[257 "\211\205 \303!\262\211\203 \304!\202 \211\305\306!\207" [rng-any-element rng-current-schema rng-current-schema-file-name expand-file-name rng-load-schema run-hooks rng-schema-change-hook] 3 (#$ . 3435)]) #@17 (fn FILENAME) (defalias 'rng-load-schema #[257 "\301!\302\"A\211\204 \203 \303\304\"\210\202 \303\305!\210\211!\207" [rng-schema-loader-alist file-name-extension assoc error "No schema loader available for file extension `%s'" "No schema loader available for null file extension"] 6 (#$ . 3710)]) #@68 Display a message saying what schema `rng-validate-mode' is using. (defalias 'rng-what-schema #[0 "\203 \301\302\303!\"\207\301\304!\207" [rng-current-schema-file-name message "Using schema %s" abbreviate-file-name "Using vacuous schema"] 4 (#$ . 4024) nil]) #@111 Set the schema for this buffer based on the buffer's contents and file-name. (fn &optional NO-DISPLAY-ERROR) (defalias 'rng-auto-set-schema #[256 "\3001 \301\302 !\210\303 0\207\203\"