Semantic CAN replace `find-tag', and jump to a definition from code.
Using a new command, `semantic-ia-fast-jump', which I happen to have
written just recently, it will also find the right owning class if
multiple classes define the same method.
Semantic CANNOT find all usages of a particular method. Indexing a
large project is not really a job for an Emacs Lisp program. Semantic
is already pushing the boundary of what is rational in Emacs Lisp.
cscope or xref is the right choice here.
In your case, the best solution would be if Semantic supported
cscope as a back-end as Joakim suggested. That way you could continue
to use cscope for some things, and semantic for others. When I
investigated cscope, it was missing a lot of detail that Semantic uses
to get smart completion stuff working, so I wasn't too motivated to
continue, as a TAGS back end would be similar.
Beyond the above features, Semantic can also provide smart
completion, where it can suggest completions based on the context.
Getting this to be reliable and fast is high on my priority list, but
it is still a bit slow. I made some checkins just yesterday to fix
one accuracy bug in this area.
>>> Perry Smith <pedz@...> seems to think that:
>This note is mostly a carry over from a note on the ecb list.
>What I do mostly is fix code in a large code base. We have cscope
>db's set up but, if semantic can get me close to what I need, I could
>make local copies of things and create db's myself.
>The key is to be able to find all the places in the code base where a
>particular variable (global) or function is used. cscope gives me
>this. I don't see how semantic with distributed files could do this.
>So, that is my first question. Is this something that semantic can
>do or is going to be able to do.
>Even in the OO world, you still need to find where, in a hugh code
>base, where things are created. Where are methods used. etc.
>And, even in a small code base working on my Ruby on Rails projects,
>I need at least TAGS ability so I can go from a method invocation to
>where it is defined. Can semantic do this?
>If it can (or if you plan to make it do that), then I'm really
>If it can not, then I'm lost. I don't see, more than making my
>buffer's pretty, what semantic can do.
>Thank you for your time,
>This SF.net email is sponsored by: Splunk Inc.
>Still grepping through log files to find problems? Stop.
>Now Search log events and configuration files using AJAX and a browser.
>Download your FREE copy of Splunk now >> http://get.splunk.com/
>Cedet-devel mailing list
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org