summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-09-23 10:17:03 -0700
committerJohn Wiegley <johnw@newartisans.com>2015-09-23 10:17:03 -0700
commit5dffc8c7cf5317b74cff0593093b72cc6060c2c1 (patch)
treedd36722354fc6c94897919df641a03905a4c9431 /lisp/use-package/use-package.el
parent3e2747f17465e5c26196c54bfbd5ab68d547d060 (diff)
parent6298e7e4775154fb1a48035293b60bb326ff54ea (diff)
downloademacs-5dffc8c7cf5317b74cff0593093b72cc6060c2c1.tar.gz
emacs-5dffc8c7cf5317b74cff0593093b72cc6060c2c1.tar.bz2
emacs-5dffc8c7cf5317b74cff0593093b72cc6060c2c1.zip
Merge pull request from waymondo/extend-bind-handler
Pass in symbol of bind macro, for more extensible re-use of same handler GitHub-reference: https://github.com/jwiegley/use-package/issues/259
Diffstat (limited to 'lisp/use-package/use-package.el')
-rw-r--r--lisp/use-package/use-package.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index 97b6ab30351..d3ed84a4038 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -663,7 +663,7 @@ manually updated package."
(defalias 'use-package-normalize/:bind* 'use-package-normalize-binder)
(defun use-package-handler/:bind
- (name keyword arg rest state &optional override)
+ (name keyword arg rest state &optional bind-macro)
(let ((commands (remq nil (mapcar #'(lambda (arg)
(if (listp arg)
(cdr arg)
@@ -673,10 +673,10 @@ manually updated package."
(use-package-sort-keywords
(use-package-plist-maybe-put rest :defer t))
(use-package-plist-append state :commands commands))
- `((ignore (,(if override 'bind-keys* 'bind-keys) ,@arg))))))
+ `((ignore (,(if bind-macro bind-macro 'bind-keys) ,@arg))))))
(defun use-package-handler/:bind* (name keyword arg rest state)
- (use-package-handler/:bind name keyword arg rest state t))
+ (use-package-handler/:bind name keyword arg rest state 'bind-keys*))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;