aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Kaludercic2026-02-12 18:24:47 +0100
committerPhilip Kaludercic2026-02-12 18:24:47 +0100
commit1b02bf1214f478c09283a2affbd66efbb9815752 (patch)
tree8e730e6d0fba6dc2843d5a12b7f735911e5363ba
parent02af0e93a0e63e6ff8354a778fe186ceedb11ebe (diff)
downloademacs-feature/package-autosuggest.tar.gz
emacs-feature/package-autosuggest.zip
Ensure package contents for package suggestionsfeature/package-autosuggest
* lisp/emacs-lisp/package.el (package--autosugest-prompt): Query archives if the package being described is not listed in package-archive-contents'.
-rw-r--r--lisp/emacs-lisp/package.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 44da3ab94e1..e2d35f20eb5 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -4578,7 +4578,12 @@ so you have to select which to install!)" nl))
4578 (package--autosuggest-install-and-enable 4578 (package--autosuggest-install-and-enable
4579 (car sugs)) 4579 (car sugs))
4580 (quit-window))) 4580 (quit-window)))
4581 " (" (buttonize "about" #'describe-package pkg) 4581 " ("
4582 (buttonize "about"
4583 (lambda (_)
4584 (unless (assq pkg package-archive-contents)
4585 (package-read-all-archive-contents))
4586 (describe-package pkg)))
4582 ", matches ") 4587 ", matches ")
4583 (dolist (sug sugs) 4588 (dolist (sug sugs)
4584 (unless (eq (char-before) ?\s) 4589 (unless (eq (char-before) ?\s)