Subject: Re: bug#41104: 28.0.50; nadvice: `find-function-library' infloops for adviced autoload fun

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 06 Jun 2022 15:33:48 +0200

Michael Heerdegen <[email-masked]> writes:

> #+begin_src emacs-lisp
> (require 'find-func)
>
> ;; we don't require 'dired so it is an autoload fun.  Then:
>
> (advice-add 'dired
>             :override
>             (defun my-dired (&rest args) t))
>
> ;; And
>
> (find-function-library 'dired)
>
> ;; infloops.
> #+end_src
>
> The problem seems be that `find-function-advised-original' unexpectedly
> returns the original symbol because `advice--cd*r' returns nil in this
> case.

This issue is still present on the trunk.  Perhaps Stefan has some
comments; added to the CCs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no