Hi Eric,

1) so the equivalent to the code browsing capability that cscope provides (via a tag-based system) is done by semantic (a true source code parser) and exposed via senator for source code navigation (such as finding the declaration)? Did i get that right? I read the documentation, but i was still a little hazy exactly on how things work. I am a little slow sometimes.

2) For starters, say i don't have cscope integrated, how would i go about jumping to a function declaration? I tried to get to a function declaration via semantic-ia-fast-jump <functionname> but that did not work. It says: could not find <functionname>. So somewhere i am missing something ...

3) Is there a simple howto (possibly with some open source project) that guides the new cedet user through using the basic features (such as: find declaration, find references) since i don't want to bug the list all the time ...


On Fri, Jul 26, 2013 at 1:00 AM, Eric M. Ludlam <eric@siege-engine.com> wrote:
On 07/25/2013 11:40 AM, Matt Funk wrote:
i am new to cedet and have been using eclipse to do development. I am
looking to have emacs be my main "ide".

My problem is the following:
I am working on a large project and i am trying to look up the
declaration of a function that i want to look at.

So i do C-c sd <functionname>
which will return a huge list of references. I would have expected for
it to list a single reference that i can choose to open. Eclipse does
this when i say open declaration.

I am unfamiliar with a key sequence "C-c sd".  What does that do?

It sounds like it requests the list of places where functionname is used, as opposed to declared.  If I recall my basic cscope, there are several types of questions to ask, such as where something is declared vs used.

If you have integrated cscope with CEDET, you would use something like "semantic-ia-fast-jump", or one of the other jump calls, and one of the "semantic-symref-*" functions to get the references.