mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-07 12:49:38 +00:00
bind-keys: bind directly to prefix-map
instead of constructing equivalent key sequence by string concatenation.
This allows specifying vector key sequences, as in bind-key (since
f0776c2aeb
).
This commit is contained in:
parent
869ff53ab9
commit
01196c81ac
1 changed files with 3 additions and 5 deletions
|
@ -189,11 +189,9 @@ function symbol (unquoted)."
|
||||||
,@(when doc `((put ',prefix-map 'variable-documentation ,doc)))
|
,@(when doc `((put ',prefix-map 'variable-documentation ,doc)))
|
||||||
(define-prefix-command ',prefix-map)
|
(define-prefix-command ',prefix-map)
|
||||||
(bind-key ,prefix ',prefix-map ,map)))
|
(bind-key ,prefix ',prefix-map ,map)))
|
||||||
,@(mapcar (lambda (form) `(bind-key ,(if prefix
|
,@(mapcar (lambda (form)
|
||||||
(concat prefix " " (car form))
|
`(bind-key ,(car form) ',(cdr form)
|
||||||
(car form))
|
,(or prefix-map map)))
|
||||||
',(cdr form)
|
|
||||||
,map))
|
|
||||||
key-bindings))))
|
key-bindings))))
|
||||||
|
|
||||||
(defun get-binding-description (elem)
|
(defun get-binding-description (elem)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue