From: Stefan Kangas Date: Sat, 18 Jun 2022 17:56:09 +0000 (+0200) Subject: Prefer defvar-keymap in edmacro.el X-Git-Tag: emacs-29.0.90~1447^2~1630 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8b45e7c6811215a0b70ade840c96e920cdb1569f;p=emacs.git Prefer defvar-keymap in edmacro.el * lisp/edmacro.el (edmacro-mode-map): Prefer defvar-keymap. --- diff --git a/lisp/edmacro.el b/lisp/edmacro.el index 04adabd06bc..11afb68883d 100644 --- a/lisp/edmacro.el +++ b/lisp/edmacro.el @@ -72,11 +72,9 @@ Default nil means to write characters above \\177 in octal notation." :type 'boolean :group 'kmacro) -(defvar edmacro-mode-map - (let ((map (make-sparse-keymap))) - (define-key map "\C-c\C-c" #'edmacro-finish-edit) - (define-key map "\C-c\C-q" #'edmacro-insert-key) - map)) +(defvar-keymap edmacro-mode-map + "C-c C-c" #'edmacro-finish-edit + "C-c C-q" #'edmacro-insert-key) (defvar edmacro-store-hook) (defvar edmacro-finish-hook)