unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20718: 25.0.50; find-function fails on advised subrs (again)
@ 2015-06-02 12:49 Michael Heerdegen
  2015-06-04  0:09 ` Dmitry Gutov
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Heerdegen @ 2015-06-02 12:49 UTC (permalink / raw)
  To: 20718


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)






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-04 22:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-02 12:49 bug#20718: 25.0.50; find-function fails on advised subrs (again) Michael Heerdegen
2015-06-04  0:09 ` Dmitry Gutov
2015-06-04 15:55   ` Stefan Monnier
2015-06-04 22:36     ` Dmitry Gutov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).