From: Michael Heerdegen via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Has something changed in the autoload mechanism in Emacs 29?
Date: Fri, 26 Jul 2024 17:59:20 +0200 [thread overview]
Message-ID: <87v80s16w7.fsf@web.de> (raw)
In-Reply-To: CALTqLiZKKO4UWBqZzENynAc1ecf-4uoodOr907R32Q0h20a8Ew@mail.gmail.com
Pierre Rouleau <prouleau001@gmail.com> writes:
> > What's the result of evaluating (symbol-function 'pel-generic-find-file)
> > in the situation where the describe command reports the wrong location?
> >
> > The result is:
>
> #[513 "\300
>
>
> \3011^\^@\211\203^P^@\211^BB\202^Q^@^A\302^A!\303^E^B\"\266\2020\207\210\304\207"
> [pel-ffind-project-directory (user-error) delete-dups pel-ffind nil] 8
> ("/Users/roup/my/dv/elisp/pel/pel-ffind.elc" . 3424)]
> The path /Users/roup/my/dv/elisp/pel/pel-ffind.elc is correct.
But isn't this a byte-code function and not an autoload function? With
a reference to the source of the docstring (when using
`byte-compile-dynamic-docstrings')?
> Yet the *Help* buffer created by (describe-symbol 'pel-generic-find-file) ,
> which returns 1,
> shows the function being defined in pel_keys.el instead of the pel-ffind.el,
> followed by the proper docstring.
>
> pel-generic-find-file is an autoloaded byte-compiled Lisp function in
> ‘pel_keys.el’.
Maybe looking at `load-history' can reveal why this file is mentioned.
> Was there not a change in Emacs 28? I'll have to go back and read the
> release notes.
Ok, yes, there had been the switch from autoloads.el to loaddefs-gen.el
with Emacs 29.
> If there's nothing obvious as to what changed in the auto loading
> mechanism then I'll need to test more on the affected platform and
> test on others.
>
> I should probably look at the code that describe-symbol and see
> where it gets the source file associated with the symbol.
When `find-lisp-object-file-name' is involved, I would try to edebug
that, as a promising starting point.
Michael.
next prev parent reply other threads:[~2024-07-26 15:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-25 2:05 Has something changed in the autoload mechanism in Emacs 29? Pierre Rouleau
2024-07-25 18:38 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-07-25 19:21 ` Pierre Rouleau
2024-07-26 11:59 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-07-26 14:07 ` Pierre Rouleau
2024-07-26 15:59 ` Michael Heerdegen via Users list for the GNU Emacs text editor [this message]
2024-08-05 23:16 ` Pierre Rouleau
2024-08-06 1:25 ` Michael Heerdegen via Users list for the GNU Emacs text editor
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v80s16w7.fsf@web.de \
--to=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.