GNU bug report logs - #59813
29.0.60; function-history: M-. fails to jump to defun if straight.el straight-cache-autoloads is enabled

Previous Next

Package: emacs;

Reported by: Naofumi Yasufuku <naofumi <at> yasufuku.dev>

Date: Sun, 4 Dec 2022 09:45:02 UTC

Severity: normal

Tags: confirmed

Found in versions 29.0.60, 30.0.50

Full log


Message #26 received at 59813 <at> debbugs.gnu.org (full text, mbox):

From: Naofumi Yasufuku <naofumi <at> yasufuku.dev>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 59813 <at> debbugs.gnu.org
Subject: Re: bug#59813: 29.0.60; function-history: M-. fails to jump to
 defun if straight.el straight-cache-autoloads is enabled
Date: Thu, 15 Dec 2022 02:23:28 +0900
Hi Stefan,

Stefan Kangas <stefankangas <at> gmail.com> writes:

>
> 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'?
>

On my systems (debian bullseye box and x86 macOS laptop), M-. failure
happens every time.  If the third (message .. (loadhist--foo-inc 1)) is
not exist, M-. on `loadhist--foo-inc' works:

#+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


If the third (message .. (loadhist--foo-inc 1)) is replaced with
`require', M-. on `loadhist--foo-inc' also fails:

#+begin_src emacs-lisp
(setq load-path (cons (locate-user-emacs-file "site-lisp") load-path))
(autoload 'loadhist--foo-inc "loadhist--foo")
(require 'loadhist--foo)
#+end_src

It is that I actually noticed this issue for the first time.

Best regards,
  Naofumi




This bug report was last modified 1 year and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.