Function: package-autosuggest
package-autosuggest is an autoloaded, interactive and byte-compiled
function defined in package.el.gz.
Signature
(package-autosuggest &optional CANDIDATES)
Documentation
Prompt the user to install the suggested packages.
The optional argument CANDIDATES may be a list of package suggestions
in the form described in package--suggestion-applies-p. If omitted
or nil, the list of candidates will be computed from the database.
Probably introduced at or before Emacs version 31.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
;;;###autoload
(defun package-autosuggest (&optional candidates)
"Prompt the user to install the suggested packages.
The optional argument CANDIDATES may be a list of package suggestions
in the form described in `package--suggestion-applies-p'. If omitted
or nil, the list of candidates will be computed from the database."
(interactive)
(package--autosuggest-prompt
(or candidates
(package--autosuggest-find-candidates)
(user-error "No package suggestions found"))))