From: Matthew Justin Bauer Date: Sun, 25 Feb 2018 21:03:43 +0000 (-0600) Subject: Support ":package" in use-package X-Git-Tag: emacs-29.0.90~1306^2~15^2~79^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2250f89ac0b8d2c19875dab67e73ac1cfe6ca3df;p=emacs.git Support ":package" in use-package bind-key supports the keyword ":package" but use-package does not know that. Adding this should be helpful. In the future, maybe we could automatically fill in with the use-package package, but that could be a breaking change. --- diff --git a/lisp/use-package/use-package-bind-key.el b/lisp/use-package/use-package-bind-key.el index d8fe56dfaa5..d17ecb2cf75 100644 --- a/lisp/use-package/use-package-bind-key.el +++ b/lisp/use-package/use-package-bind-key.el @@ -87,12 +87,14 @@ deferred until the prefix key sequence is pressed." ;; :prefix STRING ;; :filter SEXP ;; :menu-name STRING + ;; :package SYMBOL ((or (and (eq x :map) (symbolp (cadr arg))) (and (eq x :prefix) (stringp (cadr arg))) (and (eq x :prefix-map) (symbolp (cadr arg))) (and (eq x :prefix-docstring) (stringp (cadr arg))) (eq x :filter) - (and (eq x :menu-name) (stringp (cadr arg)))) + (and (eq x :menu-name) (stringp (cadr arg))) + (and (eq x :package) (symbolp (cadr arg)))) (setq args* (nconc args* (list x (cadr arg)))) (setq arg (cddr arg))) ((listp x)