From: Basil Contovounesios via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 63260@debbugs.gnu.org, rpluim@gmail.com, philipk@posteo.net
Subject: bug#63260: 29.0.90; Regression installing/activating packages without autoloads
Date: Sun, 07 May 2023 11:46:29 +0200 [thread overview]
Message-ID: <87mt2go4ne.fsf@tcd.ie> (raw)
In-Reply-To: <83sfc9fva8.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 May 2023 16:23:43 +0300")
[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]
Eli Zaretskii [2023-05-06 16:23 +0300] wrote:
>> Cc: 63260@debbugs.gnu.org, Philip Kaludercic <philipk@posteo.net>
>> 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" <bug-gnu-emacs@gnu.org>
>>
>> Robert Pluim [2023-05-05 08:36 +0200] wrote:
>>
>> > The file-missing error is expected, no? Thatʼs why the autoloads
>> > loading is wrapped in `with-demoted-errors'. Although if the message bothers
>> > you, I guess we could check `file-exists-p' for it.
>>
>> I think it's problematic to emit even a demoted error for supported
>> circumstances, such as a 'library' package that defines no autoload
>> cookies.
>>
>> Besides, shouldn't the autoloads file be generated unconditionally?
>> https://lists.gnu.org/r/emacs-devel/2022-06/msg00570.html
>>
>> 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:
[-- Attachment #2: sicp-autoloads.el --]
[-- Type: application/emacs-lisp, Size: 389 bytes --]
;;; sicp-autoloads.el --- automatically extracted autoloads -*- lexical-binding: t -*-
;;
;;; Code:
(add-to-list 'load-path (directory-file-name
(or (file-name-directory #$) (car load-path))))
\f
;; Local Variables:
;; version-control: never
;; no-byte-compile: t
;; no-update-autoloads: t
;; coding: utf-8
;; End:
;;; sicp-autoloads.el ends here
[-- Attachment #3: Type: text/plain, Size: 351 bytes --]
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:
[-- Attachment #4: bluetooth-autoloads.el --]
[-- Type: application/emacs-lisp, Size: 962 bytes --]
[-- Attachment #5: Type: text/plain, Size: 11 bytes --]
--
Basil
next prev parent reply other threads:[~2023-05-07 9:46 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-04 10:15 bug#63260: 29.0.90; Regression installing/activating packages without autoloads Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-04 15:15 ` Robert Pluim
2023-05-04 16:28 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-05 6:36 ` Robert Pluim
2023-05-06 9:01 ` Eli Zaretskii
2023-05-06 12:51 ` Robert Pluim
2023-05-06 13:12 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-06 13:28 ` Eli Zaretskii
2023-05-07 10:59 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-06 13:10 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-06 13:23 ` Eli Zaretskii
2023-05-07 9:46 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-05-07 10:50 ` Eli Zaretskii
2023-05-07 12:39 ` Philip Kaludercic
2023-05-07 12:54 ` Eli Zaretskii
2023-05-07 13:12 ` Philip Kaludercic
2023-05-07 13:21 ` Eli Zaretskii
2023-05-07 19:37 ` Philip Kaludercic
2023-05-08 11:16 ` Eli Zaretskii
2023-05-08 13:15 ` Robert Pluim
2023-05-08 13:18 ` Eli Zaretskii
2023-05-08 13:23 ` Robert Pluim
2023-05-10 13:12 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-10 14:22 ` Eli Zaretskii
2023-05-12 7:43 ` Philip Kaludercic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mt2go4ne.fsf@tcd.ie \
--to=bug-gnu-emacs@gnu.org \
--cc=63260@debbugs.gnu.org \
--cc=contovob@tcd.ie \
--cc=eliz@gnu.org \
--cc=philipk@posteo.net \
--cc=rpluim@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).