@code{package-vc-checkout}.
@vindex package-vc-selected-packages
-@findex package-vc-ensure-packages
+@findex package-vc-install-selected-packages
An alternative way to use @code{package-vc-install} is via the
@code{package-vc-selected-packages} user option. This is an alist of
packages to install, where each key is a package name and the value is
indicating a specific revision or a package specification plist. The
side effect of setting the user option is to install the package, but
the process can also be manually triggered using the function
-@code{package-vc-ensure-packages}. Here is an example of how the user
-option:
+@code{package-vc-install-selected-packages}. Here is an example of
+how the user option:
@example
@group
:version "29.1")
(defvar package-vc-selected-packages) ; pacify byte-compiler
-(defun package-vc-ensure-packages ()
+(defun package-vc-install-selected-packages ()
"Ensure packages specified in `package-vc-selected-packages' are installed."
(pcase-dolist (`(,name . ,spec) package-vc-selected-packages)
(when (stringp name)
(:vc-backend symbol)))))
:set (lambda (sym val)
(custom-set-default sym val)
- (package-vc-ensure-packages))
+ (package-vc-install-selected-packages))
:version "29.1")
(defvar package-vc--archive-spec-alist nil