On 10/01/2010 06:53 AM, Rafal Florek wrote:
> I've just installed cedet 1.0 on emacs 23.2 (windows) and it works fine.
> However I have a question:
> semantic-symref returns the same result set as GNU Global (the indexing
> tool of semantics).
> Is semantic-symref supposed to filter somehow the result so eg. it
> doesn't contain references to variables of the same name while looking
> for references to a function?
That was the original intent, but I never got that far. The existing
system is pretty slow for a large number of hits. Invoking the analyzer
would probably be problematic in that case.
The actual code to do this, however, is pretty easy. Just invoke
(semantic-analyze-current-context) and see of the found tag (last (oref
ctxt :prefix)) matches the one you start with with the recently updated
That won't differentiate between two methods in the same class with
different arguments, but will differentiate between different classes.
semantic-symref.el line 397 is the place to add something AFAIKT if
someone wants to give it a try.
I expect this would need to be an optional thing where it was asked for
after someone decides that the number of hits is sufficiently small, or
that this is required and worth waiting for. Perhaps it is derivable
from the start location. Hmmm.
I'll put this onto my todo list.