Function: package-vc--read-package-desc

package-vc--read-package-desc is a byte-compiled function defined in package-vc.el.gz.

Signature

(package-vc--read-package-desc PROMPT &optional INSTALLED)

Documentation

Query the user for a VC package and return a description with PROMPT.

If the optional argument INSTALLED is non-nil, the selection will be filtered down to VC packages that have already been installed, and the package description will be that of an installed package.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package-vc.el.gz
(defun package-vc--read-package-desc (prompt &optional installed)
  "Query the user for a VC package and return a description with PROMPT.
If the optional argument INSTALLED is non-nil, the selection will
be filtered down to VC packages that have already been
installed, and the package description will be that of an
installed package."
  (cadr (assoc (package-vc--read-package-name prompt nil installed)
               (if installed package-alist package-archive-contents)
               #'string=)))