]> git.eshelyaron.com Git - emacs.git/commit
Extend capabilities of use-package-ensure-function
authorRadon Rosborough <radon.neon@gmail.com>
Wed, 8 Mar 2017 19:17:33 +0000 (11:17 -0800)
committerRadon Rosborough <radon.neon@gmail.com>
Wed, 8 Mar 2017 19:17:33 +0000 (11:17 -0800)
commit4e6115214b24b5e52fddcb53040045890d01f59a
tree7158e0769049ebab43d3a8a128bb72041dcb992d
parent0905a7b1c728612788718014458a8f265e265389
Extend capabilities of use-package-ensure-function

Modify the expected API of `use-package-ensure-function' so that it is
passed three arguments: the name of the package declared in the
`use-package' form; the argument passed to `:ensure'; and the current
`state' plist created by previous handlers. (Previously, it was only
given a single argument, which was the argument passed to `:ensure',
or the name of the package declared in the `use-package' form, if the
former was `t'.

This allows for more flexibility in the capabilities of the
`use-package-ensure-function' implementation. For example, its
behavior can change depending on the values of other keywords, if
those keywords modify the `state' plist appropriately.
lisp/use-package/use-package.el