Server IP : 111.118.215.189 / Your IP : 3.131.85.46 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/nxml/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:08:31 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/nxml/nxml-mode.el ;;; in Emacs version 24.3.1 ;;; 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!\203\n \302\303!\210\304\305!\210\304\306!\210\304\307!\210\304\310!\210\304\311!\210\304\312!\210\313\314!\210\304\315!\210\316\317\320\321\322\323%\210\316\324\320\325\322\317%\210\326\327\330\331\322\317\332\333&\210\326\334\320\335\322\317\332\333&\210\326\336\320\337\322\317\332\333&\210\326\340\341\342\322\317\332\343&\210\326\344\345\346\322\317\332\343&\210\326\347\330\350\322\317\332\333&\210\326\351\320\352\322\317\332\333&\210\326\353\354\355\322\317\332\333&\210\326\356\320\357\322\317\332\360&\210\326\361\320\362\322\317\332\333&\210\363\364\365\366\322\324%\210\363\367\370\371\322\324%\210\363\372\373\374\322\324%\210\363\375\320\376\322\324%\210\363\377\320\201@ \322\324%\210\363\201A \201B \201C \322\324%\210\363\201D \201E \201F \322\324%\210\363\201G \201H \201I \322\324%\210\363\201J \201K \201L \322\324%\210\363\201M \201N \201O \322\324%\210\363\201P \201Q \201R \322\324%\210\363\201S \201T \201U \322\324%\210\363\201V \201W \201X \322\324%\210\363\201Y \201Z \201[ \322\324%\210\363\201\\ \201] \201^ \322\324%\210\363\201_ \201` \201a \322\324%\210\363\201b \201c \201d \322\324%\210\363\201e \201f \201g \322\324%\210\363\201h \201i \201j \322\324%\210\363\201k \201l \201m \322\324%\210\363\201n \320\201o \322\324%\210\363\201p \201q \201r \322\324%\210\363\201s \201t \201u \322\324%\210\363\201v \201w \201x \322\324%\210\363\201y \201z \201{ \322\324%\210\363\201| \201} \201~ \322\324%\210\363\201 \201\200 \201\201 \322\324%\210\363\201\202 \201\203 \201\204 \322\324%\210\363\201\205 \201\206 \201\207 \322\324%\210\363\201\210 \201\211 \201\212 \322\324%\210\363\201\213 \201\214 \201\215 \322\324%\210\363\201\216 \201\217 \201\220 \322\324%\210\363\201\221 \201\222 \201\223 \322\324%\210\363\201\224 \201\225 \201\226 \322\324%\210\363\201\227 \201\230 \201\231 \322\324%\210\363\201\232 \201\233 \201\234 \322\324%\210\363\201\235 \201\236 \201\237 \322\324%\210\363\307\201\240 \201\241 \322\324%\207" [featurep mucs error "nxml-mode is not compatible with Mule-UCS" require xmltok nxml-enc nxml-glyph nxml-util nxml-rap nxml-outln provide nxml-mode rng-nxml custom-declare-group nxml nil "New XML editing mode." :group languages nxml-faces "Faces for XML syntax highlighting." custom-declare-variable nxml-char-ref-display-glyph-flag t "Non-nil means display glyph following character reference.\nThe glyph is displayed in face `nxml-glyph'. The abnormal hook\n`nxml-glyph-set-functions' can be used to change the characters\nfor which glyphs are displayed." :type boolean nxml-sexp-element-flag "Non-nil means sexp commands treat an element as a single expression." nxml-slash-auto-complete-flag "Non-nil means typing a slash automatically completes the end-tag.\nThis is used by `nxml-electric-slash'." nxml-child-indent 2 "Indentation for the children of an element relative to the start-tag.\nThis only applies when the line or lines containing the start-tag contains\nnothing else other than that start-tag." integer nxml-attribute-indent 4 "Indentation for the attributes of an element relative to the start-tag.\nThis only applies when the first attribute of a tag starts a line.\nIn other cases, the first attribute on one line is indented the same\nas the first attribute on the previous line." nxml-bind-meta-tab-to-complete-flag "Non-nil means to use nXML completion in \\[completion-at-point]." nxml-prefer-utf-16-to-utf-8-flag "Non-nil means prefer UTF-16 to UTF-8 when saving a buffer.\nThis is used only when a buffer does not contain an encoding declaration\nand when its current `buffer-file-coding-system' specifies neither UTF-16\nnor UTF-8." nxml-prefer-utf-16-little-to-big-endian-flag (eq system-type 'windows-nt) "Non-nil means prefer little-endian to big-endian byte-order for UTF-16.\nThis is used only for saving a buffer; when reading the byte-order is\nauto-detected. It may be relevant both when there is no encoding declaration\nand when the encoding declaration specifies `UTF-16'." nxml-default-buffer-file-coding-system "Default value for `buffer-file-coding-system' for a buffer for a new file.\nA value of nil means use the default value of `buffer-file-coding-system' as normal.\nA buffer's `buffer-file-coding-system' affects what \\[nxml-insert-xml-declaration] inserts." coding-system nxml-auto-insert-xml-declaration-flag "Non-nil means automatically insert an XML declaration in a new file.\nThe XML declaration is inserted using `nxml-insert-xml-declaration'." custom-declare-face nxml-delimited-data ((t (:inherit font-lock-doc-face))) "Face used to highlight data enclosed between delimiters.\nThis is not used directly, but only via inheritance by other faces." nxml-name ((t (:inherit font-lock-builtin-face))) "Face used to highlight various names.\nThis includes element and attribute names, processing\ninstruction targets and the CDATA keyword in a CDATA section.\nThis is not used directly, but only via inheritance by other faces." nxml-ref ((t (:inherit font-lock-constant-face))) "Face used to highlight character and entity references.\nThis is not used directly, but only via inheritance by other faces." nxml-delimiter "Face used to highlight delimiters.\nThis is not used directly, but only via inheritance by other faces." nxml-text "Face used to highlight text." nxml-comment-content ((t (:inherit font-lock-comment-face))) "Face used to highlight the content of comments." nxml-comment-delimiter ((t (:inherit font-lock-comment-delimiter-face))) "Face used for the delimiters of comments, i.e., <!-- and -->." nxml-processing-instruction-delimiter ((t (:inherit nxml-delimiter))) "Face used for the delimiters of processing instructions, i.e., <? and ?>." nxml-processing-instruction-target ((t (:inherit font-lock-keyword-face))) "Face used for the target of processing instructions." nxml-processing-instruction-content ((t (:inherit nxml-delimited-data))) "Face used for the content of processing instructions." nxml-cdata-section-delimiter ((t (:inherit nxml-delimiter))) "Face used for the delimiters of CDATA sections, i.e., <![, [, and ]]>." nxml-cdata-section-CDATA ((t (:inherit nxml-name))) "Face used for the CDATA keyword in CDATA sections." nxml-cdata-section-content ((t (:inherit nxml-text))) "Face used for the content of CDATA sections." nxml-char-ref-number ((t (:inherit nxml-ref))) "Face used for the number in character references.\nThis includes ths `x' in hex references." nxml-char-ref-delimiter ((t (:inherit nxml-ref))) "Face used for the delimiters of character references, i.e., &# and ;." nxml-entity-ref-name ((t (:inherit nxml-ref))) "Face used for the entity name in general entity references." nxml-entity-ref-delimiter ((t (:inherit nxml-ref))) "Face used for the delimiters of entity references, i.e., & and ;." nxml-tag-delimiter ((t (:inherit nxml-delimiter))) "Face used for the angle brackets delimiting tags.\n`nxml-tag-slash' is used for slashes." nxml-tag-slash ((t (:inherit nxml-tag-delimiter))) "Face used for slashes in tags, both in end-tags and empty-elements." nxml-element-prefix ((t (:inherit nxml-name))) "Face used for the prefix of elements." nxml-element-colon "Face used for the colon in element names." nxml-element-local-name ((t (:inherit font-lock-function-name-face))) "Face used for the local name of elements." nxml-attribute-prefix ((t (:inherit nxml-name))) "Face used for the prefix of attributes." nxml-attribute-colon ((t (:inherit nxml-delimiter))) "Face used for the colon in attribute names." nxml-attribute-local-name ((t (:inherit font-lock-variable-name-face))) "Face used for the local name of attributes." nxml-namespace-attribute-xmlns ((t (:inherit nxml-attribute-prefix))) "Face used for `xmlns' in namespace attributes." nxml-namespace-attribute-colon ((t (:inherit nxml-attribute-colon))) "Face used for the colon in namespace attributes." nxml-namespace-attribute-prefix ((t (:inherit nxml-attribute-local-name))) "Face used for the prefix declared in namespace attributes." nxml-attribute-value ((t (:inherit font-lock-string-face))) "Face used for the value of attributes." nxml-attribute-value-delimiter ((t (:inherit nxml-attribute-value))) "Face used for the delimiters of attribute values." nxml-namespace-attribute-value ((t (:inherit nxml-attribute-value))) "Face used for the value of namespace attributes." nxml-namespace-attribute-value-delimiter ((t (:inherit nxml-attribute-value-delimiter))) "Face used for the delimiters of namespace attribute values." nxml-prolog-literal-delimiter ((t (:inherit nxml-delimited-data))) "Face used for the delimiters of literals in the prolog." nxml-prolog-literal-content ((t (:inherit nxml-delimited-data))) "Face used for the content of literals in the prolog." nxml-prolog-keyword ((t (:inherit font-lock-keyword-face))) "Face used for keywords in the prolog." nxml-markup-declaration-delimiter ((t (:inherit nxml-delimiter))) "Face used for the delimiters of markup declarations in the prolog.\nThe delimiters are <! and >." nxml-hash ((t (:inherit nxml-name))) "Face used for # before a name in the prolog." ((((type x)) (:family "misc-fixed" :background "light grey" :foreground "black" :weight normal :slant normal)) (t (:background "light grey" :foreground "black" :weight normal :slant normal))) "Face used for glyph for char references."] 8) #@97 The parent document for a part of a modular document. Use `nxml-parent-document-set' to set it. (defvar nxml-parent-document nil (#$ . 9887)) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local nxml-parent-document put safe-local-variable stringp] 4) #@111 List of regions in the prolog to be fontified. See the function `xmltok-forward-prolog' for more information. (defvar nxml-prolog-regions nil (#$ . 10169)) (make-variable-buffer-local 'nxml-prolog-regions) #@104 Position where fontification last ended. It is nil if the buffer changed since the last fontification. (defvar nxml-last-fontify-end nil (#$ . 10382)) (make-variable-buffer-local 'nxml-last-fontify-end) #@161 Non-nil if currently operating in degraded mode. Degraded mode is enabled when an internal error is encountered in the fontification or after-change functions. (defvar nxml-degraded nil (#$ . 10592)) (make-variable-buffer-local 'nxml-degraded) #@62 Hook run by `nxml-complete'. This hook is run until success. (defvar nxml-completion-hook nil (#$ . 10842)) #@226 Hook to determine whether point is in mixed content. The hook is called without arguments. It should return nil if it is definitely not mixed; non-nil otherwise. The hook will be run until one of the functions returns nil. (defvar nxml-in-mixed-content-hook nil (#$ . 10957)) #@70 Maximum distance from point to scan when checking for mixed content. (defvar nxml-mixed-scan-distance 4000 (#$ . 11241)) #@71 Maximum distance from point to scan backwards when indenting end-tag. (defvar nxml-end-tag-indent-scan-distance 4000 (#$ . 11368)) #@275 Non-nil means display extra information for character references. The extra information consists of a tooltip with the character name and, if `nxml-char-ref-display-glyph-flag' is non-nil, a glyph corresponding to the referenced character following the character reference. (defvar nxml-char-ref-extra-display t (#$ . 11506)) (make-variable-buffer-local 'nxml-char-ref-extra-display) #@23 Keymap for nxml-mode. (defvar nxml-mode-map (byte-code "\302 \303\304\305#\210\303\306\307#\210\303\310\311#\210\303\312\313#\210\303\314\315#\210\303\316\317#\210\303\320\321#\210\303\322\323#\210\303\324\323#\210\303\325\323#\210\303\326\327#\210\303\330\331#\210\303\332\333#\210\303\334\335#\210\303\336\337#\210\303\340\341#\210\303\342 #\210\303\343\344#\210\303\345\346#\210\303\347\350#\210)\207" [map nxml-outline-prefix-map make-sparse-keymap define-key "\225" nxml-backward-up-element "\204" nxml-down-element "\216" nxml-forward-element "\220" nxml-backward-element "\373" nxml-backward-paragraph "\375" nxml-forward-paragraph "\350" nxml-mark-paragraph "" nxml-finish-element "]" "/" " " nxml-split-element "" nxml-balanced-close-start-tag-block " " nxml-balanced-close-start-tag-inline "" nxml-insert-xml-declaration "" nxml-dynamic-markup-word "" nxml-insert-named-char "" [S-mouse-2] nxml-mouse-hide-direct-text-content "/" nxml-electric-slash "\211" completion-at-point] 4) (#$ . 11896)) #@43 Default font lock keywords for nxml-mode. (defvar nxml-font-lock-keywords '(nxml-fontify-matcher) (#$ . 12945)) (defalias 'nxml-set-face #[(start end face) "\205 \nW\205 \303 \n\300$\207" [face start end font-lock-append-text-property] 5]) (put 'nxml-set-face 'byte-optimizer 'byte-compile-inline-expand) #@52 Set `nxml-parent-document' and inherit the DTD &c. (defalias 'nxml-parent-document-set #[(parent-document) "\306\211\211\211\211\211\307!\307!\230\203 \310\311!\210r\312!q\210) \f\n \313\314\"\210\205^ \315p!.\207" [last-ipattern-index ipattern-table compile-table current-schema-file-name current-schema dtd nil file-truename error "Parent document cannot be the same as the document" find-file-noselect message "Set parent document to %s" rng-validate-while-idle parent-document buffer-file-name rng-dtd rng-current-schema rng-current-schema-file-name rng-compile-table rng-ipattern-table rng-last-ipattern-index nxml-parent-document rng-validate-mode] 6 (#$ . 13261) "fParent document"]) (byte-code "\300\301N\204 \302\300\301\303\304!#\210\305\306!\204 \302\306\307\310#\210\300\207" [nxml-mode-hook variable-documentation put purecopy "Hook run when entering nXML mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp nxml-mode-map definition-name nxml-mode] 5) (defvar nxml-mode-map (make-sparse-keymap)) (byte-code "\300\301N\204 \302\300\301\303\304!#\210\305\306!\204 \302\306\307\310#\210\300\207" [nxml-mode-map variable-documentation put purecopy "Keymap for `nxml-mode'." boundp nxml-mode-syntax-table definition-name nxml-mode] 5) (defvar nxml-mode-syntax-table (make-syntax-table)) (byte-code "\300\301N\204 \302\300\301\303\304!#\210\302\305\306\307#\207" [nxml-mode-syntax-table variable-documentation put purecopy "Syntax table for `nxml-mode'." nxml-mode-abbrev-table definition-name nxml-mode] 5) (defvar nxml-mode-abbrev-table (progn (define-abbrev-table 'nxml-mode-abbrev-table nil) nxml-mode-abbrev-table)) (byte-code "\300\301N\204 \302\300\301\303\304!#\210\302\305\306\307#\207" [nxml-mode-abbrev-table variable-documentation put purecopy "Abbrev table for `nxml-mode'." nxml-mode derived-mode-parent text-mode] 5) #@2636 Major mode for editing XML. \[nxml-finish-element] finishes the current element by inserting an end-tag. C-c C-i closes a start-tag with `>' and then inserts a balancing end-tag leaving point between the start-tag and end-tag. \[nxml-balanced-close-start-tag-block] is similar but for block rather than inline elements: the start-tag, point, and end-tag are all left on separate lines. If `nxml-slash-auto-complete-flag' is non-nil, then inserting a `</' automatically inserts the rest of the end-tag. \[completion-at-point] performs completion on the symbol preceding point. \[nxml-dynamic-markup-word] uses the contents of the current buffer to choose a tag to put around the word preceding point. Sections of the document can be displayed in outline form. The variable `nxml-section-element-name-regexp' controls when an element is recognized as a section. The same key sequences that change visibility in outline mode are used except that they start with C-c C-o instead of C-c. Validation is provided by the related minor-mode `rng-validate-mode'. This also makes completion schema- and context- sensitive. Element names, attribute names, attribute values and namespace URIs can all be completed. By default, `rng-validate-mode' is automatically enabled. You can toggle it using \[rng-validate-mode] or change the default by customizing `rng-nxml-auto-validate-flag'. \[indent-for-tab-command] indents the current line appropriately. This can be customized using the variable `nxml-child-indent' and the variable `nxml-attribute-indent'. \[nxml-insert-named-char] inserts a character reference using the character's name (by default, the Unicode name). \[universal-argument] \[nxml-insert-named-char] inserts the character directly. The Emacs commands that normally operate on balanced expressions will operate on XML markup items. Thus \[forward-sexp] will move forward across one markup item; \[backward-sexp] will move backward across one markup item; \[kill-sexp] will kill the following markup item; \[mark-sexp] will mark the following markup item. By default, each tag each treated as a single markup item; to make the complete element be treated as a single markup item, set the variable `nxml-sexp-element-flag' to t. For more details, see the function `nxml-forward-balanced-item'. \[nxml-backward-up-element] and \[nxml-down-element] move up and down the element structure. Many aspects this mode can be customized using \[customize-group] nxml RET. In addition to any hooks its parent mode `text-mode' might have run, this mode runs the hook `nxml-mode-hook', as the final step during initialization. (defalias 'nxml-mode #[nil "\306\300!\210\307\310 \210\311\312\310\313N\203 \314\311\313\310\313N#\210\315!\204'