From: Naofumi Yasufuku <naofumi@yasufuku.dev>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 59813@debbugs.gnu.org, stefankangas@gmail.com
Subject: 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:48:29 +0900 [thread overview]
Message-ID: <865yed27wy.fsf@yasufuku.dev> (raw)
In-Reply-To: <86a63p28ks.fsf@yasufuku.dev>
Naofumi Yasufuku <naofumi@yasufuku.dev> writes:
>
> If 3rd (message .. (loadhist--foo-inc 1)) is not exist and only autoload
> is evaluated, there is no differnce between Emacs 28 and 29:
>
Sorry. In autoload-only case, the difference is just
Emacs 29 (defun. loadhist--foo-inc) and
Emacs 28 (autoload . loadhist--foo-inc).
`symbol-file' returns autoload file.
> ;;==========================================
> ;; Emacs 28.2.50
>
[..snip..]
>
> ;; Step 3: In *scratch*, M-x eval-buffer
>
> (setq load-path (cons (locate-user-emacs-file "site-lisp") load-path))
> (autoload 'loadhist--foo-inc "loadhist--foo")
>
> ;;------------------------------------------
> ;; Step 4: Check load-history
>
> (symbol-file 'loadhist--foo-inc 'defun)
> => "loadhist--foo"
>
> (let (matches)
> (pcase-dolist (`(,file . ,elems) load-history)
> (when (rassq 'loadhist--foo-inc elems)
> (push (cons file elems) matches)))
> (nreverse matches))
> => ((nil (autoload . loadhist--foo-inc)))
>
> ;;==========================================
>
>
> ;;==========================================
> ;; Emacs 29.0.60
>
[..snip..]
>
> ;; Step 3: In *scratch*, M-x eval-buffer
>
> (setq load-path (cons (locate-user-emacs-file "site-lisp") load-path))
> (autoload 'loadhist--foo-inc "loadhist--foo")
>
> ;;------------------------------------------
> ;; Step 4: Check load-history and function-history
>
> (symbol-file 'loadhist--foo-inc 'defun)
> => "loadhist--foo"
>
> (let (matches)
> (pcase-dolist (`(,file . ,elems) load-history)
> (when (rassq 'loadhist--foo-inc elems)
> (push (cons file elems) matches)))
> (nreverse matches))
> => ((nil (defun . loadhist--foo-inc)))
>
> (get 'loadhist--foo-inc 'function-history)
> => nil
>
> ;;==========================================
>
Regards,
Naofumi
prev parent reply other threads:[~2022-12-14 17:48 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
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 [this message]
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=865yed27wy.fsf@yasufuku.dev \
--to=naofumi@yasufuku.dev \
--cc=59813@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=stefankangas@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 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.