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

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Wed, 6 May 2020 03:06:02 UTC

Severity: normal

Found in version 28.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 41104 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#41104: 28.0.50; nadvice: `find-function-library' infloops
 for adviced autoload fun
Date: Mon, 06 Jun 2022 15:33:48 +0200
Michael Heerdegen <michael_heerdegen <at> web.de> 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




This bug report was last modified 3 years and 68 days ago.

Previous Next


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