From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#53885: Autoload package-installed-p Date: Thu, 10 Feb 2022 10:30:47 +0100 Message-ID: <87mtizukzc.fsf@gmail.com> References: <87a6f0nly1.fsf@gmail.com> <87y22jm7su.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9455"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Philip Kaludercic , Lars Ingebrigtsen , 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 10:32:22 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 1nI5oL-0002Gs-SL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 10:32:21 +0100 Original-Received: from localhost ([::1]:46160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nI5oK-0007Pt-Bc for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 04:32:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI5np-0007OF-DC for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 04:31:49 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nI5n4-0001Fa-7Q for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 04:31:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nI5n4-0002Uv-3T for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 04:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Feb 2022 09:31: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.16444854579590 (code B ref 53885); Thu, 10 Feb 2022 09:31:02 +0000 Original-Received: (at 53885) by debbugs.gnu.org; 10 Feb 2022 09:30:57 +0000 Original-Received: from localhost ([127.0.0.1]:53974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI5mz-0002Ub-G9 for submit@debbugs.gnu.org; Thu, 10 Feb 2022 04:30:57 -0500 Original-Received: from mail-ed1-f42.google.com ([209.85.208.42]:43661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI5mw-0002UF-R4 for 53885@debbugs.gnu.org; Thu, 10 Feb 2022 04:30:55 -0500 Original-Received: by mail-ed1-f42.google.com with SMTP id y17so7917856edd.10 for <53885@debbugs.gnu.org>; Thu, 10 Feb 2022 01:30:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=tuEr7cQRmo+KCRBcc1MqAhbLBHYDE13/2/CbxmABZBw=; b=hb0vM926FlfYFLWcIW76W+gxQPXZJa1NSSeFoSipibwc4swqyh9BEDkAe/V7ESUIB0 zqty/XQZVbsfNbaon+FJXWlljUT2zRAxly30e9BXqnUJt56A57RVGM3LfY0RD94eEjhF OSh2MwQ/pj/cS3CIgAEeeF8lTJmRGvHKkdoOsTFIACXlPUqeddxlAwPikr55Awo8Npph WwD1fkxN/GsUXeccx5DsmJiFytK1+SwrVDTGAXBPvo7C65gsk1odd8zkYYUtz48MavWj gI1lRSBQgUtk9lEXP/22oxZ8Ng9qAbWJldnhfi7NZlbTQ1s0Mg9E/wf7gToqk9kclkKi frgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=tuEr7cQRmo+KCRBcc1MqAhbLBHYDE13/2/CbxmABZBw=; b=r0Tb2Zzaov8c+7iZjMeRqx6boJNhrHWwaNENkPmA7cNAcGfSFWQm9mfOUS4RDy9AEB O25t0QjxF3uHS1uBb5Cty58MN5W/BmTxczba4RHM8xij9nBCEPfxTuXpMqQ5DFAk2QGE YrasdU+5WzGl8rzwjRTtyhO22mCSVoqzJa2TvpaytsmosdozZhZD+zibxuB+V4o4w+Z5 STUtSa0QAQb4UpnnoWZnNpgoCzr1Y6sXC4E5zbJN+N2bm+MdtlFql2lv8rrfpbs2/xHM i5lK6VFiJn6nXUiLG39Ybvvma7nHgBIH5eZGSRhzOgEfSQp1YqZaPB4/T+sN6A0D83sN ih0A== X-Gm-Message-State: AOAM531C3lSrTw0E71lHYsoF4ENVKD+lgi5aah+xXzccX3acb/5p9Yad DsbO1AfkWcXtczZpIfTyDEDFMw47K0Twlg== X-Google-Smtp-Source: ABdhPJxHcFvZaALpF7IGvr0Zn5woXC84TEXSgP/2k13ZIAGm0YiNoIbgTBvgj+Pwh4+t9rqljX7sKQ== X-Received: by 2002:a05:6402:11ca:: with SMTP id j10mr2563554edw.351.1644485448952; Thu, 10 Feb 2022 01:30:48 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::758e]) by smtp.gmail.com with ESMTPSA id c11sm10047204edx.42.2022.02.10.01.30.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 01:30:48 -0800 (PST) In-Reply-To: (Corwin Brust's message of "Thu, 10 Feb 2022 03:23:19 -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:226580 Archived-At: On Thu, 10 Feb 2022 at 03:23, Corwin Brust wrote: >> If you delete ~/.emacs.d/elpa, your configuration as you showed it won't >> be able to bootstrap. > > I don't think I called for deleting anything; I just set-up a > non-standard place for the installation of packages. But I suspect > I'm missing your point. I thought your goal was to have Emacs download all the packages you need if you copy your configuration files to a new computer. Maybe I misunderstood. >> Autoloading 'package-installed-p' wouldn't cause any harm, but it also >> doesn't solve any problems, so why bother? > > Here I don't agree. Consider: > > (when (not (package-installed-p 'foo)) > (package-install-package 'foo)) > > This seems to DTRT; the package does get installed whereas in the > present world a backtrace is triggered unless we first take care to > load package.el. The first time you start Emacs, it doesn't have a list of packages from ELPA et al (and even if you do, it may be out of date), so 'package-install-pakcage' will fail.