mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-06 20:29:36 +00:00
Fix the case where :ensure is given no arguments
Fixes https://github.com/jwiegley/use-package/issues/543
This commit is contained in:
parent
afdf1c3638
commit
ee07e709ea
2 changed files with 9 additions and 1 deletions
|
@ -134,7 +134,7 @@ manually updated package."
|
|||
|
||||
(defun use-package-normalize/:ensure (name keyword args)
|
||||
(if (null args)
|
||||
t
|
||||
(list t)
|
||||
(use-package-only-one (symbol-name keyword) args
|
||||
#'(lambda (label arg)
|
||||
(pcase arg
|
||||
|
|
|
@ -1469,6 +1469,14 @@
|
|||
(ignore
|
||||
(bind-keys :package mu4e ("<f9>" . mu4e))))))
|
||||
|
||||
(ert-deftest use-package-test/543 ()
|
||||
(match-expansion
|
||||
(use-package hydra
|
||||
:ensure)
|
||||
`(progn
|
||||
(use-package-ensure-elpa 'hydra '(t) 'nil)
|
||||
(require 'hydra nil nil))))
|
||||
|
||||
(ert-deftest bind-key/:prefix-map ()
|
||||
(match-expansion
|
||||
(bind-keys :prefix "<f1>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue