[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2e21074efd 08/10: Prefer defvar-keymap in dns-mode-map
From: |
Stefan Kangas |
Subject: |
master 2e21074efd 08/10: Prefer defvar-keymap in dns-mode-map |
Date: |
Sat, 30 Jul 2022 06:12:06 -0400 (EDT) |
branch: master
commit 2e21074efd01ad4cd79c70be2f45896af8bc2cdf
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Prefer defvar-keymap in dns-mode-map
* lisp/textmodes/dns-mode.el (dns-mode-map): Prefer defvar-keymap.
---
lisp/textmodes/dns-mode.el | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/lisp/textmodes/dns-mode.el b/lisp/textmodes/dns-mode.el
index 42d547504c..86da09c216 100644
--- a/lisp/textmodes/dns-mode.el
+++ b/lisp/textmodes/dns-mode.el
@@ -1,6 +1,6 @@
;;; dns-mode.el --- a mode for viewing/editing Domain Name System master files
-*- lexical-binding: t -*-
-;; Copyright (C) 2000-2001, 2004-2022 Free Software Foundation, Inc.
+;; Copyright (C) 2000-2022 Free Software Foundation, Inc.
;; Author: Simon Josefsson <simon@josefsson.org>
;; Keywords: DNS master zone file SOA comm
@@ -22,11 +22,11 @@
;;; Commentary:
-;; Use M-x dns-mode RET to invoke in master files.
+;; Use `M-x dns-mode' to invoke in master files.
;;
-;; C-c C-s Increment SOA serial.
-;; Understands YYYYMMDDNN, Unix time, and serial number formats,
-;; and complains if it fail to find SOA serial.
+;; `C-c C-s' Increment SOA serial.
+;; Understands YYYYMMDDNN, Unix time, and serial number
+;; formats, and complains if it fail to find SOA serial.
;;; References:
@@ -37,12 +37,6 @@
;; Transport Layer Security (TLS) Protocol: TLSA"
;; RFC 6844, "DNS Certification Authority Authorization (CAA) Resource Record"
-;;; Release history:
-
-;; 2004-09-11 Posted on gnu.emacs.sources.
-;; 2004-09-13 Ported to XEmacs.
-;; 2004-09-14 Installed in Emacs CVS.
-
;;; Code:
(eval-when-compile (require 'cl-lib))
@@ -142,12 +136,10 @@ manually with \\[dns-mode-soa-increment-serial]."
;; Keymap.
-(defvar dns-mode-map
- (let ((map (make-sparse-keymap)))
- (define-key map "\C-c\C-s" #'dns-mode-soa-increment-serial)
- (define-key map "\C-c\C-e" #'dns-mode-ipv6-to-nibbles)
- map)
- "Keymap for DNS master file mode.")
+(defvar-keymap dns-mode-map
+ :doc "Keymap for DNS master file mode."
+ "C-c C-s" #'dns-mode-soa-increment-serial
+ "C-c C-e" #'dns-mode-ipv6-to-nibbles)
;; Menu.
- master updated (76bcbe5f93 -> cd3ce6e541), Stefan Kangas, 2022/07/30
- master 53b1e6f96c 01/10: Make outline-view-change-hook obsolete, Stefan Kangas, 2022/07/30
- master 2e21074efd 08/10: Prefer defvar-keymap in dns-mode-map,
Stefan Kangas <=
- master a109cdc8f2 04/10: ; * lisp/ffap.el: Comment cleanup., Stefan Kangas, 2022/07/30
- master ecfac493fa 03/10: Make ffap-newfile-prompt obsolete, Stefan Kangas, 2022/07/30
- master 7e84db9484 07/10: Prefer defvar-keymap in nroff-mode-map, Stefan Kangas, 2022/07/30
- master 9bdcca553f 05/10: ; * lisp/emacs-lisp/regi.el: Delete incorrect "last modified" comment., Stefan Kangas, 2022/07/30
- master fc79bb6ffc 02/10: * lisp/ffap.el (ffap-url-regexp): Add gemini., Stefan Kangas, 2022/07/30
- master cd3ce6e541 10/10: * lisp/apropos.el (apropos-documentation): Simplify., Stefan Kangas, 2022/07/30
- master f08f5b7afe 09/10: Avoid leaving temp buffers in bib-mode and refbib, Stefan Kangas, 2022/07/30
- master 454c06a22c 06/10: Fix namespace use in bib-mode.el, Stefan Kangas, 2022/07/30