diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2025-03-18 00:33:32 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2025-03-18 00:33:32 +0100 |
commit | 5f4c9053538fc1bf472c1be9a203db5c6178ea02 (patch) | |
tree | 2ffe1b79747086a7b205f6f320924584e5f88cb5 /lisp/emacs-lisp | |
parent | 69210eb84e7c3074c339b8aa2f380f66a80ae61b (diff) | |
download | emacs-5f4c9053538fc1bf472c1be9a203db5c6178ea02.tar.gz emacs-5f4c9053538fc1bf472c1be9a203db5c6178ea02.tar.bz2 emacs-5f4c9053538fc1bf472c1be9a203db5c6178ea02.zip |
; Use defvar-keymap in define-derived-mode
* lisp/emacs-lisp/derived.el (define-derived-mode): Use defvar-keymap.
This change is for documentation purposes on macro expansion.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/derived.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el index 2e54d6ce36c..2958bd37e91 100644 --- a/lisp/emacs-lisp/derived.el +++ b/lisp/emacs-lisp/derived.el @@ -217,7 +217,7 @@ No problems result if this variable is not bound. child))) (unless (boundp ',map) (put ',map 'definition-name ',child)) - (with-no-warnings (defvar ,map (make-sparse-keymap))) + (with-no-warnings (defvar-keymap ,map)) (unless (get ',map 'variable-documentation) (put ',map 'variable-documentation ,(format "Keymap for `%s'." child))) |