]> git.eshelyaron.com Git - emacs.git/commit
Add function use-package-jump-to-package-form
authorJustin Burkett <justin@burkett.cc>
Thu, 23 Jun 2016 02:46:32 +0000 (22:46 -0400)
committerJustin Burkett <justin@burkett.cc>
Thu, 23 Jun 2016 03:18:14 +0000 (23:18 -0400)
commitc13ca927c201c53f2107d54ba2dad8beb15d84ba
treeacc3df0dbf72533344c8676fe250eba088095a90
parentff0a5e281d68d15720cfd3fc8b98eb1abe4da74c
Add function use-package-jump-to-package-form

This is an attempt at resolving https://github.com/jwiegley/use-package/issues/329. The new interactive function
use-package-jump-to-package-form will prompt with a completing read of
all known packages. After selecting a package, use-package-find-require
searches load-history to see where the package was required and then I
attempt to find the correct use-package form using
use-package-form-regexp.

It will fail if the use-package form you are looking for did not
actually load the package. For example it could be something that is a
dependency of a library that was already loaded. In some sense this is a
feature because it is helpful to know that the library was already
loaded when your use-package form was encountered. It will also fail if
your use-package declaration doesn't match the regexp used, but this is
easily adjusted.
lisp/use-package/use-package.el