]> git.eshelyaron.com Git - emacs.git/commitdiff
Use `define-keymap' in log-view.el
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Oct 2021 18:11:51 +0000 (20:11 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Oct 2021 18:11:51 +0000 (20:11 +0200)
* lisp/vc/log-view.el (log-view-mode-map): Convert a
`easy-mmode-defmap' to `define-keymap'.

lisp/vc/log-view.el

index c2f008fc47d4523110ed361e907b9170c0af693a..2c78000e38b36b39835b954848bd96846a7e4366 100644 (file)
 ;;; Code:
 
 (require 'pcvs-util)
+(require 'easy-mmode)
 (autoload 'vc-find-revision "vc")
 (autoload 'vc-diff-internal "vc")
 
   :group 'pcl-cvs
   :prefix "log-view-")
 
-(easy-mmode-defmap log-view-mode-map
-  '(
-    ("-"       .       negative-argument)
-    ("0"       .       digit-argument)
-    ("1"       .       digit-argument)
-    ("2"       .       digit-argument)
-    ("3"       .       digit-argument)
-    ("4"       .       digit-argument)
-    ("5"       .       digit-argument)
-    ("6"       .       digit-argument)
-    ("7"       .       digit-argument)
-    ("8"       .       digit-argument)
-    ("9"       .       digit-argument)
-
-    ("\C-m" . log-view-toggle-entry-display)
-    ("m" . log-view-toggle-mark-entry)
-    ("e" . log-view-modify-change-comment)
-    ("d" . log-view-diff)
-    ("=" . log-view-diff)
-    ("D" . log-view-diff-changeset)
-    ("a" . log-view-annotate-version)
-    ("f" . log-view-find-revision)
-    ("n" . log-view-msg-next)
-    ("p" . log-view-msg-prev)
-    ("\t" . log-view-msg-next)
-    ([backtab] . log-view-msg-prev)
-    ("N" . log-view-file-next)
-    ("P" . log-view-file-prev)
-    ("\M-n" . log-view-file-next)
-    ("\M-p" . log-view-file-prev))
-  "Log-View's keymap."
-  :inherit special-mode-map
-  :group 'log-view)
+(defvar-keymap log-view-mode-map
+  (kbd "RET") #'log-view-toggle-entry-display
+  "m" #'log-view-toggle-mark-entry
+  "e" #'log-view-modify-change-comment
+  "d" #'log-view-diff
+  "=" #'log-view-diff
+  "D" #'log-view-diff-changeset
+  "a" #'log-view-annotate-version
+  "f" #'log-view-find-revision
+  "n" #'log-view-msg-next
+  "p" #'log-view-msg-prev
+  (kbd "TAB") #'log-view-msg-next
+  (kbd "<backtab>") #'log-view-msg-prev
+  "N" #'log-view-file-next
+  "P" #'log-view-file-prev
+  (kbd "M-n") #'log-view-file-next
+  (kbd "M-p") #'log-view-file-prev)
 
 (easy-menu-define log-view-mode-menu log-view-mode-map
   "Log-View Display Menu."