[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
- Re: Clojure mode, (continued)
- Re: Clojure mode, Eli Zaretskii, 2023/08/30
- Re: Clojure mode, Philip Kaludercic, 2023/08/30
- Re: Clojure mode, Eli Zaretskii, 2023/08/30
- Re: Clojure mode, Philip Kaludercic, 2023/08/30
- Re: Clojure mode, Eli Zaretskii, 2023/08/30
- package-autosuggest, Philip Kaludercic, 2023/08/30
- Re: package-autosuggest, Stefan Monnier, 2023/08/30
- Re: package-autosuggest,
Philip Kaludercic <=
- Re: package-autosuggest, Stefan Monnier, 2023/08/31
- Re: package-autosuggest, Eshel Yaron, 2023/08/31
- Re: package-autosuggest, Stefan Monnier, 2023/08/31
- Re: package-autosuggest, Eshel Yaron, 2023/08/31
- Re: package-autosuggest, Stefan Kangas, 2023/08/31
- Re: Clojure mode, Eli Zaretskii, 2023/08/29
- Re: Clojure mode, Richard Stallman, 2023/08/30
- Re: Clojure mode, Gregor Zattler, 2023/08/31
- Re: Clojure mode, Richard Stallman, 2023/08/30
- Re: Clojure mode, Eli Zaretskii, 2023/08/31