From ec84ed0dfbeebb8683330449aa4e476debd2f72c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 9 Dec 2017 16:28:49 -0800 Subject: Fix a scoping issues with multiple occurrences of :bind Fixes https://github.com/jwiegley/use-package/issues/585 --- lisp/use-package/use-package-bind-key.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lisp/use-package/use-package-bind-key.el') diff --git a/lisp/use-package/use-package-bind-key.el b/lisp/use-package/use-package-bind-key.el index b26c812bf58..d8fe56dfaa5 100644 --- a/lisp/use-package/use-package-bind-key.el +++ b/lisp/use-package/use-package-bind-key.el @@ -128,8 +128,11 @@ deferred until the prefix key sequence is pressed." (name keyword args rest state &optional bind-macro) (use-package-concat (use-package-process-keywords name rest state) - `((,(if bind-macro bind-macro 'bind-keys) - :package ,name ,@(use-package-normalize-commands args))))) + `(,@(mapcar + #'(lambda (xs) + `(,(if bind-macro bind-macro 'bind-keys) + :package ,name ,@(use-package-normalize-commands xs))) + (use-package-split-list-at-keys :break args))))) (defun use-package-handler/:bind* (name keyword arg rest state) (use-package-handler/:bind name keyword arg rest state 'bind-keys*)) -- cgit v1.2.3