1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

Add use-package-vc-prefer-newest user option

* lisp/use-package/use-package-core.el (use-package-vc-prefer-newest):
User option to prefer the latest commit (as opposed to the latest
release) of a package.
(use-package-normalize--vc-arg): Check for
use-package-vc-prefer-newest.

* doc/misc/use-package.texi (Install package): Document
use-package-vc-prefer-newest.

* etc/NEWS: Document use-package-vc-prefer-newest.
This commit is contained in:
Tony Zorman 2023-12-21 17:51:09 +01:00 committed by Philip Kaludercic
parent 87be53846b
commit 77115be256
3 changed files with 30 additions and 5 deletions

View file

@ -1639,8 +1639,12 @@ For example,
would try -- by invoking @code{package-vc-install} -- to install the
latest commit of the package @code{foo} from the specified remote.
This can also be used for local packages, by combining it with the
@code{:load-path} (@pxref{Load path}) keyword:
@vindex use-package-vc-prefer-newest
Alternatively, the @code{use-package-vc-prefer-newest} user option
exists to always prefer the latest commit.
The @code{:vc} keyword can also be used for local packages, by
combining it with @code{:load-path} (@pxref{Load path}):
@example
@group