mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 11:49:37 +00:00
bind-keys: ,@(when map (list map)) => map
Omitting map is same as passing nil.
This commit is contained in:
parent
053a1514a1
commit
869ff53ab9
1 changed files with 2 additions and 2 deletions
|
@ -188,12 +188,12 @@ function symbol (unquoted)."
|
|||
`((defvar ,prefix-map)
|
||||
,@(when doc `((put ',prefix-map 'variable-documentation ,doc)))
|
||||
(define-prefix-command ',prefix-map)
|
||||
(bind-key ,prefix ',prefix-map ,@(when map (list map)))))
|
||||
(bind-key ,prefix ',prefix-map ,map)))
|
||||
,@(mapcar (lambda (form) `(bind-key ,(if prefix
|
||||
(concat prefix " " (car form))
|
||||
(car form))
|
||||
',(cdr form)
|
||||
,@(when map (list map))))
|
||||
,map))
|
||||
key-bindings))))
|
||||
|
||||
(defun get-binding-description (elem)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue