From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#63260: 29.0.90; Regression installing/activating packages without autoloads Date: Sun, 07 May 2023 12:39:48 +0000 Message-ID: <87y1m0co2z.fsf@posteo.net> References: <87ild8tnbg.fsf@tcd.ie> <87ttwsnn59.fsf@gmail.com> <87zg6kysao.fsf@tcd.ie> <87lei3nv24.fsf@gmail.com> <87a5yhtxkw.fsf@tcd.ie> <83sfc9fva8.fsf@gnu.org> <87mt2go4ne.fsf@tcd.ie> <83pm7ce7p2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30780"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Basil Contovounesios , 63260@debbugs.gnu.org, rpluim@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 07 14:40:15 2023 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 1pvdgU-0007ol-Iw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 May 2023 14:40:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvdgL-0000y8-69; Sun, 07 May 2023 08:40:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvdgJ-0000xv-HT for bug-gnu-emacs@gnu.org; Sun, 07 May 2023 08:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvdgJ-0005yR-7j for bug-gnu-emacs@gnu.org; Sun, 07 May 2023 08:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvdgI-0003du-Ge for bug-gnu-emacs@gnu.org; Sun, 07 May 2023 08:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 May 2023 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63260 X-GNU-PR-Package: emacs Original-Received: via spool by 63260-submit@debbugs.gnu.org id=B63260.168346320013990 (code B ref 63260); Sun, 07 May 2023 12:40:02 +0000 Original-Received: (at 63260) by debbugs.gnu.org; 7 May 2023 12:40:00 +0000 Original-Received: from localhost ([127.0.0.1]:36639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvdgG-0003dZ-GE for submit@debbugs.gnu.org; Sun, 07 May 2023 08:40:00 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:36423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvdgB-0003dE-CG for 63260@debbugs.gnu.org; Sun, 07 May 2023 08:39:58 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CF29D240135 for <63260@debbugs.gnu.org>; Sun, 7 May 2023 14:39:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683463189; bh=2msOTrJNiYOgIw+cNU/g1ZRtmukhbvSqSc6QIgs0A2k=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=eOYwZNevlWti1+zvLZiuXqMJNjAr3IdGIVnyBW5sRFfda7/N6MySw74nWirJVlZGS c5bkDOCy+E8A6ODo4aMbyB4sOCi3RukuPyUQ/bVVRudnD7ZvEFOxl1OOFCrFvgyJnx 4h1+KA/jOIrgxbMpJTK6eBIyXC02UuSsgHyQBzGUVR/o1QF3BZkMPwCZDLCorYaek6 ftAmXoRRYAiawR5DxbWZrNiDA51iZPRBwaUJ0pxz0569xEPgx21XwdYpkwyMjCMLle scztKCsE5thlrDcH4n+XXm5hjT0zWtoMqoZIiQuh5TT7dPZXHWcr2e+PUJxcvOv+5R sLgvuQ01oq5+g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QDkX51TKgz6tvs; Sun, 7 May 2023 14:39:49 +0200 (CEST) In-Reply-To: <83pm7ce7p2.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 07 May 2023 13:50:49 +0300") Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261253 Archived-At: Eli Zaretskii writes: >> From: Basil Contovounesios >> Cc: 63260@debbugs.gnu.org, rpluim@gmail.com, philipk@posteo.net >> Date: Sun, 07 May 2023 11:46:29 +0200 >> >> >> While the error logged to *Messages* is relatively silent, its subequent >> >> repetition on Emacs startup is not: >> >> >> >> $ emacs-29 >> >> Error loading autoloads: (file-missing Cannot open load file >> >> No such file or directory >> >> /tmp/tmp.QQvQfBZ384/.emacs.d/elpa/sicp-20200512.1137/sicp-autoloads) >> >> >> >> This does not seem like TRT to me. >> > >> > What happened in Emacs 28 in the same situation? >> >> Emacs 28.2 installs and activates the sicp package without complaints, >> and generates the following -autoloads.el file, as expected: >> >> >> The current emacs-29 generates no such autoloads file, because the sicp >> package defines no autoloads. But in general the -autoloads.el file is >> nevertheless needed, at least for its load-path logic. > > AFAIU, in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62734 I asked > Philip what would happen in this case, and he replied that the changes > he proposed did TRT in that case? So what is different here? Philip? No, that appears to have been my mistake. The issue is that `loaddefs-generate' generates the autoload file while looping over all definitions to autoload, but if there are no files, Basil is right that nothing happens. This is fine in general, but `loaddefs-generate' has the extra task of modifying load-path (which has been the root of the issue in bug#62734). Perhaps it is best to revert the commit, and come up with a alternative solution. I have an idea, but I'll have to test it again before I forget something like this. -- Philip Kaludercic