Function: use-package-vc-install
use-package-vc-install is a byte-compiled function defined in
use-package-core.el.gz.
Signature
(use-package-vc-install ARG &optional LOCAL-PATH)
Documentation
Install a package with package-vc.el.
ARG is a list of the form (NAME OPTIONS REVISION), as returned by
use-package-normalize--vc-arg. If LOCAL-PATH is non-nil, call
package-vc-install-from-checkout; otherwise, indicating a
remote host, call package-vc-install instead.
Source Code
;; Defined in /usr/src/emacs/lisp/use-package/use-package-core.el.gz
;;;; :vc
(defun use-package-vc-install (arg &optional local-path)
"Install a package with `package-vc.el'.
ARG is a list of the form (NAME OPTIONS REVISION), as returned by
`use-package-normalize--vc-arg'. If LOCAL-PATH is non-nil, call
`package-vc-install-from-checkout'; otherwise, indicating a
remote host, call `package-vc-install' instead."
(pcase-let* ((`(,name ,opts ,rev) arg)
(spec (if opts (cons name opts) name)))
(unless (package-installed-p name)
(if local-path
(with-suppressed-warnings ((obsolete package-vc-install-from-checkout))
(warn "Support for :vc with :load-path is obsolete. \
Use the User Lisp directory instead.")
(package-vc-install-from-checkout local-path (symbol-name name)))
(package-vc-install spec rev)))))