Subject: bug#20718: closed (Re: bug#20718: 25.0.50; find-function fails on advised subrs (again))

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 04 Jun 2015 22:38:03 +0000

Your bug report

#20718: 25.0.50; find-function fails on advised subrs (again)

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].

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

Subject: Re: bug#20718: 25.0.50; find-function fails on advised subrs (again)
From: Dmitry Gutov <[email-masked]>
To: Stefan Monnier <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Fri, 5 Jun 2015 01:36:52 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 25.1

On 06/04/2015 06:55 PM, Stefan Monnier wrote:

> So the callers will need to be adjusted.

Ok, done. I seems to work now.

Subject: 25.0.50; find-function fails on advised subrs (again)
From: Michael Heerdegen <[email-masked]>
To: [email-masked]
Date: Tue, 02 Jun 2015 14:49:05 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

just as a random example:

  (advice-add 'handle-switch-frame :after #'prin1)

and M-x find-function 'handle-switch-frame RET

==> find-function-search-for-symbol: Don't know where
    `handle-switch-frame' is defined

Works without advicing.  I included the word "again" in the subject
because this had been fixed once in #789 in 2008.

It doesn't work because `find-function-library' performs the subrp test
just on the symbol function of the given function name, which is the
advice, not the original subr.

Thanks,

Michael.

In GNU Emacs 25.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5)
 of 2015-05-30 on drachen
Windowing system distributor `The X.Org Foundation', version 11.0.11701000
System Description:	Debian GNU/Linux testing (stretch)