emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: package-autosuggest


From: Stefan Monnier
Subject: Re: package-autosuggest
Date: Wed, 30 Aug 2023 19:13:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

> +(defun package--suggestion-applies-p (pkg-sug)
> +  "Check if a suggestion PKG-SUG is applicable to the current buffer."
> +  (pcase pkg-sug
> +    (`(,(pred package-installed-p) . _) nil)

I think we should strive to minimize the dependency on `package.el` (as
well as the performance impact) so we should try and use something like
`fboundp` here instead (testing "the function" provided by the package
when it's installed).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]