[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53885: 28.0.51 [PATCH] Autoload package-installed-p
From: |
Lars Ingebrigtsen |
Subject: |
bug#53885: 28.0.51 [PATCH] Autoload package-installed-p |
Date: |
Thu, 10 Feb 2022 09:41:40 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Corwin Brust <corwin@bru.st> writes:
> I would like to have my init scripts automatically install a package
> that isn't available "out of the box", but only if that feature hasn't
> already been installed.
>
> As things presently stand, `package-installed-p' is nearly perfect for
> this, however one must take care to ensure package.el has been
> manually loaded before calling it, in order to avoid Emacs raising the
> error shown in the original report.
Oh, I see -- this has nothing to do with use-package, and you could have
used some other package manager. You just want to be able to check
whether a package is installed in .emacs (without saying `require
'package') which seems reasonable to me.
However, this comes firmly under "new functionality" and not "bug fix",
so I'm not sure we should put it in emacs-28 at this point, no matter
how innocuous it looks like. But if Eli thinks otherwise, I won't
object.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, (continued)
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Corwin Brust, 2022/02/08
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Eli Zaretskii, 2022/02/09
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Lars Ingebrigtsen, 2022/02/09
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Corwin Brust, 2022/02/09
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Eli Zaretskii, 2022/02/10
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Lars Ingebrigtsen, 2022/02/10
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Corwin Brust, 2022/02/10
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Eli Zaretskii, 2022/02/10
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Corwin Brust, 2022/02/10
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Eli Zaretskii, 2022/02/10
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p,
Lars Ingebrigtsen <=
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Corwin Brust, 2022/02/10
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Eli Zaretskii, 2022/02/10
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Corwin Brust, 2022/02/10
- bug#53885: 28.0.51 [PATCH] Autoload package-installed-p, Eli Zaretskii, 2022/02/10
bug#53885: Autoload package-installed-p, Corwin Brust, 2022/02/09