From: Stefan Kangas <stefankangas@gmail.com>
To: Naofumi Yasufuku <naofumi@yasufuku.dev>
Cc: 59813@debbugs.gnu.org
Subject: bug#59813: 29.0.60; function-history: M-. fails to jump to defun if straight.el straight-cache-autoloads is enabled
Date: Tue, 13 Dec 2022 13:30:06 -0800 [thread overview]
Message-ID: <CADwFkmk-UzARCHopQj1YB+OD9Gy_8M4wpR2MX4zcrRgKN2xddQ@mail.gmail.com> (raw)
In-Reply-To: <86r0x312ez.fsf@yasufuku.dev>
tags 59813 + confirm
found 59813 30.0.50
thanks
Naofumi Yasufuku <naofumi@yasufuku.dev> writes:
> ----------------------------------------
> 1. Create the following file
>
> ~/.emacs.d/site-lisp/loadhist--foo.el
>
> #+begin_src emacs-lisp
> (defun loadhist--foo-inc (x) (1+ x))
> (provide 'loadhist--foo)
> #+end_src
>
> ----------------------------------------
> 2. emacs -Q
>
> ----------------------------------------
> 3. Insert the following to *scratch*
>
> #+begin_src emacs-lisp
> (setq load-path (cons (locate-user-emacs-file "site-lisp") load-path))
> (autoload 'loadhist--foo-inc "loadhist--foo")
> (message "(loadhist--foo-inc 1): %s" (loadhist--foo-inc 1))
> #+end_src
>
> ----------------------------------------
> 4. In *scratch*, M-x eval-buffer
>
> ----------------------------------------
> 5. M-. on `loadhist--foo-inc'
> =>
> xref--not-found-error: No definitions found for: loadhist--foo-inc
Thanks for the clear recipe.
I can reproduce this on master, but not every time. Sometimes it works
even after one `eval-buffer'. For some reason, it seems to work more
often when I remove the third line with `message'?
Something definitely seems wrong with the autoloading and/or xref here.
next prev parent reply other threads:[~2022-12-13 21:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-04 9:44 bug#59813: 29.0.60; function-history: M-. fails to jump to defun if straight.el straight-cache-autoloads is enabled Naofumi Yasufuku
2022-12-13 1:20 ` Stefan Kangas
2022-12-13 20:20 ` Naofumi Yasufuku
2022-12-13 21:30 ` Stefan Kangas [this message]
2022-12-14 17:23 ` Naofumi Yasufuku
2022-12-14 3:26 ` Eli Zaretskii
2022-12-14 17:24 ` Naofumi Yasufuku
2022-12-14 17:34 ` Naofumi Yasufuku
2022-12-14 17:48 ` Naofumi Yasufuku
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=CADwFkmk-UzARCHopQj1YB+OD9Gy_8M4wpR2MX4zcrRgKN2xddQ@mail.gmail.com \
--to=stefankangas@gmail.com \
--cc=59813@debbugs.gnu.org \
--cc=naofumi@yasufuku.dev \
/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.