views:

80

answers:

4

There is, and has been for awhile, the excellent etags program. For many languages it allows one to generate a TAGS file which emacs can use to jump from a call site to the definition. The versions of etags I have seen support literally oodles of languages.

Is there a similar program that can generate who-calls data?

For example, given a function foo, I'd like to generate an emacs buffer containing a list of functions which call foo. It would be great if it supported multiple languages, although I'm primarily thinking about C.

A: 

I'm not sure about anything that does this, but M-x grep works pretty well for me. While it may generate false positives, I find that it usually works quite well.

Nathaniel Flath
+2  A: 

Doxygen makes call graphs, and I suppose you could take the data used for graphing and make use of it in Emacs.

Jouni K. Seppänen
A: 

CEDET can provide this information, but doesn't have ready to use tool. You can look to the code of COGRE package, that is included into CEDET and used to build UML diagrams, including generation of diagrams from existing code

Alex Ott
+1  A: 

GNU global is a nice replacement for etags.

[http://www.gnu.org/software/global/][1] http://www.gnu.org/software/global/

gaizka