unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to find out who calls a function?
@ 2011-10-05 15:04 Thorsten
  2011-10-05 19:08 ` Johan Bockgård
  0 siblings, 1 reply; 3+ messages in thread
From: Thorsten @ 2011-10-05 15:04 UTC (permalink / raw)
  To: emacs-devel

Hi List, 

I wonder if there are ways to produce a call graph for elisp libraries,
or at least list all functions in the library that call a specified
function? 

I use M-x occur to find out where function names appear, or edebug to
follow the controlflow. But maybe there are more specialised ways to
find out the call relationships between functions in a (big) library?

Thanks for any hints.
-- 
Thorsten




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

* Re: How to find out who calls a function?
  2011-10-05 15:04 How to find out who calls a function? Thorsten
@ 2011-10-05 19:08 ` Johan Bockgård
  2011-10-05 20:08   ` Thorsten
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Bockgård @ 2011-10-05 19:08 UTC (permalink / raw)
  To: emacs-devel

Thorsten <quintfall@googlemail.com> writes:

> I wonder if there are ways to produce a call graph for elisp libraries,
> or at least list all functions in the library that call a specified
> function? 

byte-compile-generate-call-tree (see who-calls.el).




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

* Re: How to find out who calls a function?
  2011-10-05 19:08 ` Johan Bockgård
@ 2011-10-05 20:08   ` Thorsten
  0 siblings, 0 replies; 3+ messages in thread
From: Thorsten @ 2011-10-05 20:08 UTC (permalink / raw)
  To: emacs-devel

Johan Bockgård <bojohan@gnu.org> writes:

> Thorsten <quintfall@googlemail.com> writes:
>
>> I wonder if there are ways to produce a call graph for elisp libraries,
>> or at least list all functions in the library that call a specified
>> function? 
>
> byte-compile-generate-call-tree (see who-calls.el).


Great, thanks!

-- 
Thorsten




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

end of thread, other threads:[~2011-10-05 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-05 15:04 How to find out who calls a function? Thorsten
2011-10-05 19:08 ` Johan Bockgård
2011-10-05 20:08   ` Thorsten

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