mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
Use cl-mapcan rather than apply 'nconc; thanks wasamasa
This commit is contained in:
parent
189c8b5422
commit
ed2e85e4a7
@ -220,17 +220,15 @@ function symbol (unquoted)."
|
||||
#'(lambda (m)
|
||||
`(bind-key ,prefix ',prefix-map ,m)) maps)
|
||||
`((bind-key ,prefix ',prefix-map)))))
|
||||
(apply
|
||||
#'nconc
|
||||
(mapcar (lambda (form)
|
||||
(if prefix-map
|
||||
`((bind-key ,(car form) ',(cdr form) ,prefix-map))
|
||||
(if maps
|
||||
(mapcar
|
||||
#'(lambda (m)
|
||||
`(bind-key ,(car form) ',(cdr form) ,m)) maps)
|
||||
`((bind-key ,(car form) ',(cdr form))))))
|
||||
key-bindings))))))
|
||||
(cl-mapcan (lambda (form)
|
||||
(if prefix-map
|
||||
`((bind-key ,(car form) ',(cdr form) ,prefix-map))
|
||||
(if maps
|
||||
(mapcar
|
||||
#'(lambda (m)
|
||||
`(bind-key ,(car form) ',(cdr form) ,m)) maps)
|
||||
`((bind-key ,(car form) ',(cdr form))))))
|
||||
key-bindings)))))
|
||||
|
||||
;;;###autoload
|
||||
(defmacro bind-keys* (&rest args)
|
||||
|
Loading…
Reference in New Issue
Block a user