| Server IP : 217.160.0.212 / Your IP : 216.73.216.15 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/textmodes/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(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") (#$ . 172))
#@41 List of strings with known DNS classes.
(defconst dns-mode-classes '("IN" "CS" "CH" "HS") (#$ . 304))
#@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") (#$ . 412))
(byte-code "\300\301\302\303\304\305%\210\300\306\307\310\304\305%\210\300\311\312\313\304\305%\210\300\314\315\316\304\305%\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" 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."] 6)
#@55 Name of face used for control entities, e.g. $ORIGIN.
(defvar dns-mode-control-entity-face ''dns-mode-control-entity (#$ . 1475))
(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 (#$ . 1734))
(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 (#$ . 2019))
(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 (#$ . 2228))
(byte-code "\300\301\302\303\304$\210\305\306\307\310\311DD\312\313\303\314\315&\210\305\316\307\310\317DD\320\314\321\322\323&\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 funcall function #[0 "\306\307!P\310 E\311\310\nE\307!\310\fE\307
!\310\nEF\207" [dns-mode-control-entities dns-mode-control-entity-face dns-mode-bad-control-entity-face dns-mode-classes dns-mode-class-face dns-mode-types "^\\$" regexp-opt 0 "^\\$[a-z0-9A-Z]+" dns-mode-type-face] 6 #1=""] "Font lock keywords used to highlight text in DNS master file mode." :version :type sexp dns-mode-soa-auto-increment-serial #[0 "\300\207" [t] 1 #1#] "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] 8)
#@49 Syntax table in use in DNS master file buffers.
(defvar dns-mode-syntax-table (byte-code "\300 \301\302\303#\210\301\304\305#\210\207" [make-syntax-table modify-syntax-entry 59 "< " 10 "> "] 5) (#$ . 3496))
#@34 Keymap for DNS master file mode.
(defvar dns-mode-map (byte-code "\300 \301\302\303#\210\301\304\305#\210\207" [make-sparse-keymap define-key "" dns-mode-soa-increment-serial "" dns-mode-ipv6-to-nibbles] 5) (#$ . 3715))
#@39 Menubar used in DNS master file mode.
(defvar dns-mode-menu nil (#$ . 3947))
#@11 DNS Menu.
(defvar dns-mode-menu nil (#$ . 4030))
(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)
#@381 Major mode for viewing and editing DNS master files.
This mode is derived from text mode. It adds 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 #[0 "\306\300!\210\307\310 \210\311\312\310\313N\203 \314\311\313\310\313N#\210\315!\204'