mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
Ensure package contents for package suggestions
* lisp/emacs-lisp/package.el (package--autosugest-prompt): Query archives if the package being described is not listed in package-archive-contents'.
This commit is contained in:
parent
02af0e93a0
commit
1b02bf1214
1 changed files with 6 additions and 1 deletions
|
|
@ -4578,7 +4578,12 @@ so you have to select which to install!)" nl))
|
||||||
(package--autosuggest-install-and-enable
|
(package--autosuggest-install-and-enable
|
||||||
(car sugs))
|
(car sugs))
|
||||||
(quit-window)))
|
(quit-window)))
|
||||||
" (" (buttonize "about" #'describe-package pkg)
|
" ("
|
||||||
|
(buttonize "about"
|
||||||
|
(lambda (_)
|
||||||
|
(unless (assq pkg package-archive-contents)
|
||||||
|
(package-read-all-archive-contents))
|
||||||
|
(describe-package pkg)))
|
||||||
", matches ")
|
", matches ")
|
||||||
(dolist (sug sugs)
|
(dolist (sug sugs)
|
||||||
(unless (eq (char-before) ?\s)
|
(unless (eq (char-before) ?\s)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue