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

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 07 Jun 2022 14:33:02 +0000

Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
41104: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=41104
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#41104: 28.0.50; nadvice: `find-function-library' infloops for adviced autoload fun
From: Stefan Monnier <[email-masked]>
To: Michael Heerdegen <[email-masked]>
Cc: [email-masked]
Date: Tue, 07 Jun 2022 10:31:56 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

> The problem seems be that `find-function-advised-original' unexpectedly
> returns the original symbol because `advice--cd*r' returns nil in this
> case.

I believe the problem is now fixed in `master`.

        Stefan

Subject: 28.0.50; nadvice: `find-function-library' infloops for adviced autoload fun
From: Michael Heerdegen <[email-masked]>
To: [email-masked]
Date: Wed, 06 May 2020 05:05:07 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

in *scratch* eval this:

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

TIA,

Michael.