From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#53885: 28.0.51 [PATCH] Autoload package-installed-p Date: Thu, 10 Feb 2022 08:10:47 +0200 Message-ID: <83bkzfuu8o.fsf@gnu.org> References: <83y22kupn7.fsf@gnu.org> <87v8xng5ig.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31800"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 53885@debbugs.gnu.org To: Corwin Brust Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 10 07:14:04 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nI2iR-00085z-FJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 07:14:03 +0100 Original-Received: from localhost ([::1]:46312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nI2iP-0000hB-Q7 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 01:14:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2gW-0000ge-7i for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 01:12:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nI2gU-0007YT-N4 for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 01:12:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nI2gU-000390-FN for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 01:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Feb 2022 06:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53885 X-GNU-PR-Package: emacs Original-Received: via spool by 53885-submit@debbugs.gnu.org id=B53885.164447346812011 (code B ref 53885); Thu, 10 Feb 2022 06:12:02 +0000 Original-Received: (at 53885) by debbugs.gnu.org; 10 Feb 2022 06:11:08 +0000 Original-Received: from localhost ([127.0.0.1]:53389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI2fb-00037f-Tt for submit@debbugs.gnu.org; Thu, 10 Feb 2022 01:11:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI2fa-00036e-Us for 53885@debbugs.gnu.org; Thu, 10 Feb 2022 01:11:07 -0500 Original-Received: from [2001:470:142:3::e] (port=49784 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2fU-0007Tz-UI; Thu, 10 Feb 2022 01:11:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=zLLOG7lYmSzNI8XKqGkRuR5ySBV03EzTnWrWBmHnrRs=; b=mrMnxWAWaCuY iB5SyrrB2VUSC6W3Wu9ZUXRxaVKL3mZruqqxWXDF+jLrofyMEDXZbXmheKWCgz/H5NSC5N919HOxk Qa5fNJkUEshngRfk0HD8/5NzEZm1AORa1HozyR1CcOTH1htCvTcmz0UfUZ+3JTs2SL5uDCdBpVHJ3 LRQQjarA03wlt3lD4f4e2+9sDM3T3xFHennXC0RCL03qWX1odvslzXAmvOIGAtbdvDc7SQntdZz7n ZP6FMP++COKba3PQiqSa7I8l6yyeXH1xSlNSmevoku6t8B2XbSEBOdF+MoRtBc8vuf0bBAP9IZoFS sYnsmMp2eKA9xm0FbdL9uA==; Original-Received: from [87.69.77.57] (port=2635 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2fM-0000zd-Er; Thu, 10 Feb 2022 01:11:00 -0500 In-Reply-To: (message from Corwin Brust on Wed, 9 Feb 2022 17:58:25 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226525 Archived-At: > From: Corwin Brust > Date: Wed, 9 Feb 2022 17:58:25 -0600 > Cc: Eli Zaretskii , 53885@debbugs.gnu.org > > On Wed, Feb 9, 2022 at 2:16 PM Lars Ingebrigtsen 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?