From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Basil Contovounesios via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63260: 29.0.90; Regression installing/activating packages without autoloads Date: Sun, 07 May 2023 11:46:29 +0200 Message-ID: <87mt2go4ne.fsf@tcd.ie> 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> Reply-To: Basil Contovounesios Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25778"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63260@debbugs.gnu.org, rpluim@gmail.com, philipk@posteo.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 07 11:47:14 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 1pvaz4-0006S0-EO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 May 2023 11:47:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvayx-0004A8-Te; Sun, 07 May 2023 05:47:07 -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 1pvays-00049N-Qo for bug-gnu-emacs@gnu.org; Sun, 07 May 2023 05:47:06 -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 1pvays-0004tU-IK for bug-gnu-emacs@gnu.org; Sun, 07 May 2023 05:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvays-0004po-Dx for bug-gnu-emacs@gnu.org; Sun, 07 May 2023 05:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Basil Contovounesios Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 May 2023 09:47: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.168345280118553 (code B ref 63260); Sun, 07 May 2023 09:47:02 +0000 Original-Received: (at 63260) by debbugs.gnu.org; 7 May 2023 09:46:41 +0000 Original-Received: from localhost ([127.0.0.1]:36506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvayW-0004pA-TI for submit@debbugs.gnu.org; Sun, 07 May 2023 05:46:41 -0400 Original-Received: from mail-wm1-f48.google.com ([209.85.128.48]:62748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvayU-0004ou-DA for 63260@debbugs.gnu.org; Sun, 07 May 2023 05:46:39 -0400 Original-Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-3f315735514so139663825e9.1 for <63260@debbugs.gnu.org>; Sun, 07 May 2023 02:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; t=1683452793; x=1686044793; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=GTv6xspsiFr6kwjIZ+NEWFySM+bWCk+EteFOMsTzwgs=; b=eREorz4QYyiiUp45mnNDIDPFki/iLFXXW7CCS9FXcayTNEZdcL2XXFxOd0qzmkFmC0 MSx8KNWqYQ58Q4z89jGI3tihl2IUxFA9CFQ+dBd7p8ynUCXqXdRdExRPnhlGnWXSe/dI y5i1xy1m0H4CadiTdxJY0cRQMqf4A+XFLszbsKlDTFHbtHCb9CvcTp+QTUxa/4/psJ+j gCJv1TSNJ/4H9+NlZfija5NQJhZwgzmCoiTrxojhHFzVwvraq/j/zjOLfBPL7t3+t5vO 9I6QBAA7We7pRo76YxM64hC1npK9a5ItThlv2j8Cm/+hdCtXkZNE6Zb/6DvwRCBzERa7 7mDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683452793; x=1686044793; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GTv6xspsiFr6kwjIZ+NEWFySM+bWCk+EteFOMsTzwgs=; b=h59fk4sBEt5PEaOkLt2wMRi8xoXWC1MSr7LIsSCV/PQrA5sGnMaQP/4zmLt1SEi9Nx AWH/Nm0zxTdKPuM0+nxXm16g6rBDlQVc7wb+yy0xT6fRgdUYX9D8mIuN3Lak2OTaMxy9 frFLpny6Hz4EBRdMd2erfLjLugidU4ZK43sYRdFt7SjJ8cD7X1jhunDhg/6SCFpnBZyJ CrLGZZYkuM2DYglX8MZY8MzaNhjLD2FWk1J8rh7ELsk7VUx8pwFzIcpWZysGxbeFdllC IWq/3gpPdkNrFSOIpy9chpYPdp/6PB7ZyA2iWwvcxEWfln9J+r8+g03c878KCd0SrwEH NSUA== X-Gm-Message-State: AC+VfDxk1UMjk38cN1YljaXdOTE7WG8nQpZr1FAcPTH1g8ZATjJlHN3q LJ2hAocOfHDwxw4OPvqetZ283A== X-Google-Smtp-Source: ACHHUZ74z9Pm7qjcXmJo2sc98ZxHkdYMdVgPyVOrmVSw5gV3wrPNQ9fpzIBIa5jtfCxH2dMu9Sy7fA== X-Received: by 2002:a05:600c:c1a:b0:3f1:7619:f0f6 with SMTP id fm26-20020a05600c0c1a00b003f17619f0f6mr5375758wmb.9.1683452792682; Sun, 07 May 2023 02:46:32 -0700 (PDT) Original-Received: from localhost ([64.43.50.196]) by smtp.gmail.com with ESMTPSA id y6-20020a1c4b06000000b003f17131952fsm13175008wma.29.2023.05.07.02.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 02:46:30 -0700 (PDT) In-Reply-To: <83sfc9fva8.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 May 2023 16:23:43 +0300") 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:261245 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Eli Zaretskii [2023-05-06 16:23 +0300] wrote: >> Cc: 63260@debbugs.gnu.org, Philip Kaludercic >> Date: Sat, 06 May 2023 15:10:23 +0200 >> From: Basil Contovounesios via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> Robert Pluim [2023-05-05 08:36 +0200] wrote: >>=20 >> > The file-missing error is expected, no? That=CA=BCs why the autoloads >> > loading is wrapped in `with-demoted-errors'. Although if the message b= others >> > you, I guess we could check `file-exists-p' for it. >>=20 >> I think it's problematic to emit even a demoted error for supported >> circumstances, such as a 'library' package that defines no autoload >> cookies. >>=20 >> Besides, shouldn't the autoloads file be generated unconditionally? >> https://lists.gnu.org/r/emacs-devel/2022-06/msg00570.html >>=20 >> While the error logged to *Messages* is relatively silent, its subequent >> repetition on Emacs startup is not: >>=20 >> $ 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) >>=20 >> 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: --=-=-= Content-Type: application/emacs-lisp; charset=utf-8 Content-Disposition: inline; filename=sicp-autoloads.el Content-Transfer-Encoding: quoted-printable ;;; sicp-autoloads.el --- automatically extracted autoloads -*- lexical-bi= nding: t -*- ;; ;;; Code: (add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path)))) ;; Local Variables: ;; version-control: never ;; no-byte-compile: t ;; no-update-autoloads: t ;; coding: utf-8 ;; End: ;;; sicp-autoloads.el ends here --=-=-= Content-Type: text/plain 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. Contrast this with a package that defines even a single autoload cookie, such as the bluetooth package on GNU ELPA. In this case emacs-29 does TRT: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline; filename=bluetooth-autoloads.el Content-Transfer-Encoding: quoted-printable ;;; bluetooth-autoloads.el --- automatically extracted autoloads (do not ed= it) -*- lexical-binding: t -*- ;; Generated by the `loaddefs-generate' function. ;; This file is part of GNU Emacs. ;;; Code: (add-to-list 'load-path (or (and load-file-name (file-name-directory load-f= ile-name)) (car load-path))) ;;; Generated autoloads from bluetooth.el (autoload 'bluetooth-list-devices "bluetooth" "\ Display a list of Bluetooth devices. This function starts Bluetooth mode which offers an interface offering device management functions, e.g. pairing, connecting, scanning the bus, displaying device info etc." t) (register-definition-prefixes "bluetooth" '("bluetooth-")) ;;; End of scraped data (provide 'bluetooth-autoloads) ;; Local Variables: ;; version-control: never ;; no-byte-compile: t ;; no-update-autoloads: t ;; no-native-compile: t ;; coding: utf-8-emacs-unix ;; End: ;;; bluetooth-autoloads.el ends here --=-=-= Content-Type: text/plain -- Basil --=-=-=--