aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPhilip Kaludercic2024-11-08 11:41:47 -0500
committerPhilip Kaludercic2024-11-08 11:41:47 -0500
commit2a88c6dc3c36f726275554f1b93e32fd726e415c (patch)
tree7d8830c72d8a6e09fe32ba8efaaa4b44bdfce294 /lisp
parent8fa657f064cf605b19e6d11e083df152ca3e21d3 (diff)
downloademacs-feature/package-autosuggest.tar.gz
emacs-feature/package-autosuggest.zip
Do not suggest packages outside of 'fundamental-mode'feature/package-autosuggest
* lisp/emacs-lisp/package.el (package--autosuggest-find-candidates): Check 'major-mode' before computing suggestions.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/package.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 335a08b2206..f687839f206 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -4618,7 +4618,7 @@ SUG should be an element of `package-autosuggest-database'."
4618 "Return a list of suggestions that might be interesting the current buffer. 4618 "Return a list of suggestions that might be interesting the current buffer.
4619The elements of the returned list will be a subset of the elements of 4619The elements of the returned list will be a subset of the elements of
4620`package--autosuggest-suggested'." 4620`package--autosuggest-suggested'."
4621 (and package-autosuggest-mode 4621 (and package-autosuggest-mode (eq major-mode 'fundamental-mode)
4622 (let (suggetions) 4622 (let (suggetions)
4623 (dolist (sug package-autosuggest-database) 4623 (dolist (sug package-autosuggest-database)
4624 (when (package--suggestion-applies-p sug) 4624 (when (package--suggestion-applies-p sug)