emacs-devel
[Top][All Lists]
Advanced

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

Re: package-autosuggest


From: Philip Kaludercic
Subject: Re: package-autosuggest
Date: Thu, 31 Aug 2023 05:38:14 +0000

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> +(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).

Would you argue it would be better to implement this feature outside of
package.el?  And by function we mean something like the major mode of a
package, right?

>
>         Stefan



reply via email to

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