GNU bug report logs - #53885
Autoload package-installed-p

Previous Next

Package: emacs;

Reported by: Corwin Brust <corwin <at> bru.st>

Date: Tue, 8 Feb 2022 23:56:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Corwin Brust <corwin <at> bru.st>
Cc: larsi <at> gnus.org, 53885 <at> debbugs.gnu.org
Subject: bug#53885: 28.0.51 [PATCH] Autoload package-installed-p
Date: Thu, 10 Feb 2022 08:10:47 +0200
> From: Corwin Brust <corwin <at> bru.st>
> Date: Wed, 9 Feb 2022 17:58:25 -0600
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 53885 <at> debbugs.gnu.org
> 
> On Wed, Feb 9, 2022 at 2:16 PM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> >
> > It should be safe for the release branch, so installing it is fine by
> > me, but I didn't really understand the use case.
> 
> Sorry I failed in making the case for users clear.
> 
> The primary use-case here is "repeatable configuration", especially
> bootstrapping `use-package'.
> 
> By "repeatable configuration" we mean, we get the same setup each time
> we start Emacs, even when launching for the first time on a new host.
> 
> The use package feature provides an "ensure" capability that is well
> suited to this job.
> 
>   (use-package 'foo :ensure t)
> 
> This appears widely used, especially to create literate Emacs configurations.
> 
> For this to work, however, "bootstrapping" (installing use-package via
> Emacs core features) is needed.  The reproducer I gave shows one way
> of bootstrapping use-package. Considering the similarity of my
> reproducer to the recipe in #31397, I think it is a fairly common
> approach and has been for some years.

Thanks, but I don't think I understand the relevance, probably because
I don't use use-package.  Why do you need package-installed-p to be
autoloaded in this scenario, and why cannot use-package do that by
itself?




This bug report was last modified 3 years and 103 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.