Function: package--query-desc

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

Signature

(package--query-desc &optional ALIST)

Documentation

Query the user for a package or return the package at point.

The optional argument ALIST must consist of elements with the form (PKG-NAME PKG-DESC). If not specified, it will default to package-alist.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defun package--query-desc (&optional alist)
  "Query the user for a package or return the package at point.
The optional argument ALIST must consist of elements with the
form (PKG-NAME PKG-DESC).  If not specified, it will default to
`package-alist'."
  (or (tabulated-list-get-id)
      (let ((alist (or alist package-alist)))
        (cadr (assoc (completing-read "Package: " alist nil t)
                     alist #'string=)))))