%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/textmodes/ |
Current File : //usr/local/share/emacs/27.2/lisp/textmodes/dns-mode.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (custom-declare-group 'dns-mode nil "DNS master file mode configuration." :group 'data) #@51 Lists of strings with known DNS control entities. (defconst dns-mode-control-entities '("INCLUDE" "ORIGIN" "TTL") (#$ . 496)) #@41 List of strings with known DNS classes. (defconst dns-mode-classes '("IN" "CS" "CH" "HS") (#$ . 628)) #@39 List of strings with known DNS types. (defconst dns-mode-types '("A" "NS" "MD" "MF" "CNAME" "SOA" "MB" "MG" "MR" "NULL" "WKS" "PTR" "HINFO" "MINFO" "MX" "TXT" "RP" "AFSDB" "X25" "ISDN" "RT" "NSAP" "SIG" "KEY" "PX" "GPOS" "AAAA" "LOC" "NXT" "EID" "NIMLOC" "SRV" "ATMA" "NAPTR" "KX" "CERT" "A6" "DNAME" "SINK" "OPT" "APL" "DS" "SSHFP" "RRSIG" "NSEC" "DNSKEY" "UINFO" "UID" "GID" "UNSPEC" "TKEY" "TSIG" "IXFR" "AXFR" "MAILB" "MAILA" "TLSA" "NSEC3" "CAA") (#$ . 736)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\306\307&\210\300\313\314\315\304\305\306\307&\210\300\316\317\320\304\305\306\307&\207" [custom-declare-face dns-mode-control-entity ((t :inherit font-lock-keyword-face)) "Face used for DNS control entities, e.g. $ORIGIN." :version "26.1" :group dns-mode dns-mode-bad-control-entity ((t :inherit font-lock-warning-face)) "Face used for non-standard DNS control entities, e.g. $FOO." dns-mode-type ((t :inherit font-lock-type-face)) "Face used for DNS types, e.g., SOA." dns-mode-class ((t :inherit font-lock-constant-face)) "Face used for DNS classes, e.g., IN."] 8) #@55 Name of face used for control entities, e.g. $ORIGIN. (defvar dns-mode-control-entity-face ''dns-mode-control-entity (#$ . 1851)) (make-obsolete-variable 'dns-mode-control-entity-face "customize the face `dns-mode-control-entity' instead." "26.1" 'set) #@65 Name of face used for non-standard control entities, e.g. $FOO. (defvar dns-mode-bad-control-entity-face ''dns-mode-bad-control-entity (#$ . 2110)) (make-obsolete-variable 'dns-mode-bad-control-entity-face "customize the face `dns-mode-bad-control-entity' instead." "26.1" 'set) #@45 Name of face used for DNS types, e.g., SOA. (defvar dns-mode-type-face ''dns-mode-type (#$ . 2395)) (make-obsolete-variable 'dns-mode-type-face "customize the face `dns-mode-type' instead." "26.1" 'set) #@46 Name of face used for DNS classes, e.g., IN. (defvar dns-mode-class-face ''dns-mode-class (#$ . 2604)) (byte-code "\300\301\302\303\304$\210\305\306\307\310\311\303\312\313\314\315& \210\305\316\317\320\312\321\322\323\314\315& \207" [make-obsolete-variable dns-mode-class "customize the face `dns-mode-class' instead." "26.1" set custom-declare-variable dns-mode-font-lock-keywords `((,(concat "^\\$" (regexp-opt dns-mode-control-entities)) 0 ,dns-mode-control-entity-face) ("^\\$[a-z0-9A-Z]+" 0 ,dns-mode-bad-control-entity-face) (,(regexp-opt dns-mode-classes) 0 ,dns-mode-class-face) (,(regexp-opt dns-mode-types) 0 ,dns-mode-type-face)) "Font lock keywords used to highlight text in DNS master file mode." :version :type sexp :group dns-mode dns-mode-soa-auto-increment-serial t "Whether to increment the SOA serial number automatically.\n\nIf this variable is t, the serial number is incremented upon each save of\nthe file. If it is `ask', Emacs asks for confirmation whether it should\nincrement the serial upon saving. If nil, serials must be incremented\nmanually with \\[dns-mode-soa-increment-serial]." (choice (const :tag "Always" t) (const :tag "Ask" ask) (const :tag "Never" nil)) :safe symbolp] 10) #@49 Syntax table in use in DNS master file buffers. (defvar dns-mode-syntax-table (byte-code "\301 \302\303\304#\210\302\305\306#\210)\207" [table make-syntax-table modify-syntax-entry 59 "< " 10 "> "] 4) (#$ . 3827)) #@34 Keymap for DNS master file mode. (defvar dns-mode-map (byte-code "\301 \302\303\304#\210\302\305\306#\210)\207" [map make-sparse-keymap define-key "" dns-mode-soa-increment-serial "" dns-mode-ipv6-to-nibbles] 4) (#$ . 4055)) #@39 Menubar used in DNS master file mode. (defvar dns-mode-menu nil (#$ . 4294)) #@11 DNS Menu. (defvar dns-mode-menu nil (#$ . 4377)) (easy-menu-do-define 'dns-mode-menu dns-mode-map "DNS Menu." '("DNS" ["Increment SOA serial" dns-mode-soa-increment-serial t] ["Convert IPv6 address to nibbles" dns-mode-ipv6-to-nibbles t])) (defvar dns-mode-hook nil) (byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [dns-mode-hook variable-documentation put "Hook run after entering DNS mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp dns-mode-map definition-name dns-mode] 4) (defvar dns-mode-map (make-sparse-keymap)) (byte-code "\301\302N\204 \303\301\302\304\305!#\210\306\307!\204 \303\307\310\311#\210\312\313 !\210\307\302N\204- \303\307\302\304\314!#\210\306\300!\204B \303\300\310\311#\210\315\316\300\317\"\210!\210\300\302N\204P \303\300\302\304\320!#\210\303\311\321\322#\207" [dns-mode-abbrev-table dns-mode-map variable-documentation put purecopy "Keymap for `dns-mode'." boundp dns-mode-syntax-table definition-name dns-mode (lambda (#1=#:def-tmp-var) (defvar dns-mode-syntax-table #1#)) make-syntax-table "Syntax table for `dns-mode'." (lambda (#1#) (defvar dns-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `dns-mode'." derived-mode-parent text-mode] 5) #@382 Major mode for viewing and editing DNS master files. This mode is inherited from text mode. It add syntax highlighting, and some commands for handling DNS master files. Its keymap inherits from `text-mode' and it has the same variables for customizing indentation. It has its own abbrev table and its own syntax table. Turning on DNS mode runs `dns-mode-hook'. \{dns-mode-map} (defalias 'dns-mode #[nil "\306\300!\210\307\310 \210\311\312\310\313N\203 \314\311\313\310\313N#\210\315!\204' \316\317 \"\210\320\f!\211\2036 \321 =\203<