projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f3c1eb
)
Prefer defvar-keymap in edmacro.el
author
Stefan Kangas
<stefan@marxist.se>
Sat, 18 Jun 2022 17:56:09 +0000
(19:56 +0200)
committer
Stefan Kangas
<stefan@marxist.se>
Sat, 18 Jun 2022 17:56:09 +0000
(19:56 +0200)
* lisp/edmacro.el (edmacro-mode-map): Prefer defvar-keymap.
lisp/edmacro.el
patch
|
blob
|
history
diff --git
a/lisp/edmacro.el
b/lisp/edmacro.el
index 04adabd06bc52d151150c49a50e570920bc00a03..11afb68883d22b1491df485ad919ccb14c32527c 100644
(file)
--- 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)