Function: package-vc-install-selected-packages

package-vc-install-selected-packages is an autoloaded, interactive and byte-compiled function defined in package-vc.el.gz.

Signature

(package-vc-install-selected-packages)

Documentation

Ensure packages specified in package-vc-selected-packages are installed.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package-vc.el.gz
(defvar package-vc-selected-packages) ; pacify byte-compiler

;;;###autoload
(defun package-vc-install-selected-packages ()
  "Ensure packages specified in `package-vc-selected-packages' are installed."
  (interactive)
  (pcase-dolist (`(,name . ,spec) package-vc-selected-packages)
    (when (stringp name)
      (setq name (intern name)))
    (unless (package-get-descriptor name 'installed #'package-vc-p)
      (cond
       ((null spec)
        (package-vc-install name))
       ((stringp spec)
        (package-vc-install name spec))
       ((listp spec)
        (package-vc--archives-initialize)
        (package-vc--unpack
         (or (package-get-descriptor name 'archive)
             (package-desc-create :name name :kind 'vc))
         spec))))))