diff options
| author | Stefan Kangas | 2022-07-30 11:22:19 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-07-30 12:07:49 +0200 |
| commit | 2e21074efd01ad4cd79c70be2f45896af8bc2cdf (patch) | |
| tree | 89099145073d1822f65a351c6a3892958e8b9286 | |
| parent | 7e84db9484f59f3409d5c4e0d9b8a432381c2f15 (diff) | |
| download | emacs-2e21074efd01ad4cd79c70be2f45896af8bc2cdf.tar.gz emacs-2e21074efd01ad4cd79c70be2f45896af8bc2cdf.zip | |
Prefer defvar-keymap in dns-mode-map
* lisp/textmodes/dns-mode.el (dns-mode-map): Prefer defvar-keymap.
| -rw-r--r-- | lisp/textmodes/dns-mode.el | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/lisp/textmodes/dns-mode.el b/lisp/textmodes/dns-mode.el index 42d547504c1..86da09c2168 100644 --- a/lisp/textmodes/dns-mode.el +++ b/lisp/textmodes/dns-mode.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; dns-mode.el --- a mode for viewing/editing Domain Name System master files -*- lexical-binding: t -*- | 1 | ;;; dns-mode.el --- a mode for viewing/editing Domain Name System master files -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2000-2001, 2004-2022 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2000-2022 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Simon Josefsson <simon@josefsson.org> | 5 | ;; Author: Simon Josefsson <simon@josefsson.org> |
| 6 | ;; Keywords: DNS master zone file SOA comm | 6 | ;; Keywords: DNS master zone file SOA comm |
| @@ -22,11 +22,11 @@ | |||
| 22 | 22 | ||
| 23 | ;;; Commentary: | 23 | ;;; Commentary: |
| 24 | 24 | ||
| 25 | ;; Use M-x dns-mode RET to invoke in master files. | 25 | ;; Use `M-x dns-mode' to invoke in master files. |
| 26 | ;; | 26 | ;; |
| 27 | ;; C-c C-s Increment SOA serial. | 27 | ;; `C-c C-s' Increment SOA serial. |
| 28 | ;; Understands YYYYMMDDNN, Unix time, and serial number formats, | 28 | ;; Understands YYYYMMDDNN, Unix time, and serial number |
| 29 | ;; and complains if it fail to find SOA serial. | 29 | ;; formats, and complains if it fail to find SOA serial. |
| 30 | 30 | ||
| 31 | ;;; References: | 31 | ;;; References: |
| 32 | 32 | ||
| @@ -37,12 +37,6 @@ | |||
| 37 | ;; Transport Layer Security (TLS) Protocol: TLSA" | 37 | ;; Transport Layer Security (TLS) Protocol: TLSA" |
| 38 | ;; RFC 6844, "DNS Certification Authority Authorization (CAA) Resource Record" | 38 | ;; RFC 6844, "DNS Certification Authority Authorization (CAA) Resource Record" |
| 39 | 39 | ||
| 40 | ;;; Release history: | ||
| 41 | |||
| 42 | ;; 2004-09-11 Posted on gnu.emacs.sources. | ||
| 43 | ;; 2004-09-13 Ported to XEmacs. | ||
| 44 | ;; 2004-09-14 Installed in Emacs CVS. | ||
| 45 | |||
| 46 | ;;; Code: | 40 | ;;; Code: |
| 47 | 41 | ||
| 48 | (eval-when-compile (require 'cl-lib)) | 42 | (eval-when-compile (require 'cl-lib)) |
| @@ -142,12 +136,10 @@ manually with \\[dns-mode-soa-increment-serial]." | |||
| 142 | 136 | ||
| 143 | ;; Keymap. | 137 | ;; Keymap. |
| 144 | 138 | ||
| 145 | (defvar dns-mode-map | 139 | (defvar-keymap dns-mode-map |
| 146 | (let ((map (make-sparse-keymap))) | 140 | :doc "Keymap for DNS master file mode." |
| 147 | (define-key map "\C-c\C-s" #'dns-mode-soa-increment-serial) | 141 | "C-c C-s" #'dns-mode-soa-increment-serial |
| 148 | (define-key map "\C-c\C-e" #'dns-mode-ipv6-to-nibbles) | 142 | "C-c C-e" #'dns-mode-ipv6-to-nibbles) |
| 149 | map) | ||
| 150 | "Keymap for DNS master file mode.") | ||
| 151 | 143 | ||
| 152 | ;; Menu. | 144 | ;; Menu. |
| 153 | 145 | ||