From: David Masterson <dsmasterson@gmail.com>
To: Stefan Monnier via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: "transient-define-suffix" autoload error ?
Date: Tue, 18 Jun 2024 16:01:25 -0700 [thread overview]
Message-ID: <LV8P223MB092099682B71B02EAB66D462A2CE2@LV8P223MB0920.NAMP223.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <LV8P223MB0920301B241194B892E71948A2CE2@LV8P223MB0920.NAMP223.PROD.OUTLOOK.COM> (David Masterson's message of "Tue, 18 Jun 2024 14:48:19 -0700")
David Masterson <dsmasterson@gmail.com> writes:
> Stefan Monnier via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org> writes:
>
>>> Error loading autoloads: (void-function transient-define-suffix)
>>
>> This error indicates "the" file was miscompiled because it uses
>> `transient-define-suffix` without making sure that macro is actually
>> defined (i.e. without `require`ing `transient`).
>>
>> How to fix it depends on what "the" file is, and why
>> `transient-define-suffix` is there.
>
> That is my problem! How do you find the file that is causing the error?
> Based on where the error occurs in *Messages* and that it also prints to
> standard error(?) as Emacs is starting, I would guess that the error is
> occuring site-lisp or site-start. A "--debug-init" doesn't give me
> anything because Emacs hasn't gotten to the init file yet (CMIIAW).
> Therefore, I guess it is not in any of my ,emacs.d/elpa packages.
>
> I recognize what the problem is -- I'm just not sure how to find where
> it is happening.
Followup:
A '--no-init-file' does make the error go away. That suggests that it is
a problem with my packages. The only packages that I am using that use
transient (AFAICT) is forge and magit. Debugging them is going to be
difficult -- they looked good on requires in my first look.
I use-package to load almost all of my interesting package, so I tried
to ':disabled' these two as a first test. The error still comes up.
I'm not sure how native compilation works internally, so I have some
questions:
1. When are the native packages loaded in the startup sequence?
2. Does disabling a package via use-package prevent the native code from
loading as well?
3. Is there a way to tell Emacs 28.2 to ignore the native code?
4. Does the natve compiler clean up old code from the cache?
5. Could my error be happening in the native code?
--
David Masterson
next prev parent reply other threads:[~2024-06-18 23:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-18 5:21 "transient-define-suffix" autoload error ? David Masterson
2024-06-18 5:47 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-06-18 21:48 ` David Masterson
2024-06-18 22:27 ` Stefan Monnier
2024-06-18 23:01 ` David Masterson [this message]
2024-06-18 23:16 ` Stefan Monnier
2024-06-18 23:51 ` David Masterson
2024-06-19 2:07 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-06-19 21:24 ` David Masterson
2024-06-19 21:36 ` Stefan Monnier
2024-06-20 5:14 ` Eli Zaretskii
2024-06-19 2:17 ` David Masterson
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=LV8P223MB092099682B71B02EAB66D462A2CE2@LV8P223MB0920.NAMP223.PROD.OUTLOOK.COM \
--to=dsmasterson@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.
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).