1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-23 22:20:24 -08:00

Merge pull request from matthewbauer/patch-1

Support ":package" in use-package
GitHub-reference: https://github.com/jwiegley/use-package/issues/633
This commit is contained in:
John Wiegley 2018-03-05 10:09:44 -08:00 committed by GitHub
commit 76e6d3e8bc

View file

@ -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)