summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-12-09 10:30:18 +0800
committerPo Lu <luangruo@yahoo.com>2021-12-09 10:30:18 +0800
commit47cd820d93d282da484ae91e68021736ed7994bc (patch)
treea24229d1df8547dfd427ef97cf9968b7f5a1e7a8 /lisp/emacs-lisp
parent41b1d223c6ab7bca1b626a4c07a4f2dda2855feb (diff)
parent63f07ea22f3954c2154d831017caf494911cb515 (diff)
downloademacs-47cd820d93d282da484ae91e68021736ed7994bc.tar.gz
emacs-47cd820d93d282da484ae91e68021736ed7994bc.tar.bz2
emacs-47cd820d93d282da484ae91e68021736ed7994bc.zip
Merge remote-tracking branch 'origin/master' into feature/pgtk
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/shortdoc.el14
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el
index ba08e68af57..5c51e257eb0 100644
--- a/lisp/emacs-lisp/shortdoc.el
+++ b/lisp/emacs-lisp/shortdoc.el
@@ -1423,14 +1423,12 @@ Example:
(setq slist (cdr slist)))
(setcdr slist (cons elem (cdr slist))))))
-(defvar shortdoc-mode-map
- (let ((map (make-sparse-keymap)))
- (define-key map (kbd "n") 'shortdoc-next)
- (define-key map (kbd "p") 'shortdoc-previous)
- (define-key map (kbd "C-c C-n") 'shortdoc-next-section)
- (define-key map (kbd "C-c C-p") 'shortdoc-previous-section)
- map)
- "Keymap for `shortdoc-mode'.")
+(defvar-keymap shortdoc-mode-map
+ :doc "Keymap for `shortdoc-mode'."
+ "n" #'shortdoc-next
+ "p" #'shortdoc-previous
+ "C-c C-n" #'shortdoc-next-section
+ "C-c C-p" #'shortdoc-previous-section)
(define-derived-mode shortdoc-mode special-mode "shortdoc"
"Mode for shortdoc."