I've lost track of what your original question was. There is a
command in the CVS version of CEDET which I added recently called
semantic-ia-show-variants. It looks up the symbol under point, and
shows different variants of that symbol if there are multiple things of
the same name. You could look at it's code, since that function is
designed as a learning example.
Alternately, you can use a debugging routine as an example of what to
do. The function semantic-adebug-searchdb shows how to do a search, and
then show the search in an interactive dump buffer.
You can use
M-x find-function RET
to go to a function by name, or you can use
C-h f some-symbol RET
and then click on the file where the symbol is located to go there.
Does this help?
On 05/20/2010 06:12 AM, Suvayu Ali wrote:
> Hi Eric,
> On Tuesday 18 May 2010 04:16 AM, Eric M. Ludlam wrote:
>> On 05/18/2010 01:13 AM, Suvayu Ali wrote:
>>> Hi Eric,
>>> On Monday 17 May 2010 04:19 PM, Eric M. Ludlam wrote:
>>>> Semantic stores everything, so it will keep both. If you use the low
>>>> level search commands, it will also identify both if you do a search by
>>>> name, unless you specifically ask for a "find the first by name".
>>> What are these low level search commands? Are they by default bound to
>>> any keys by semantic? Are you referring to senator-nonincremental-*
>>> search commands? I tried those but they only seem to find tags within
>>> the current file.
>> Sorry, I should have specified "low level search functions", as they are
>> not commands.
>> The functions in question are:
>> The non-db version will search only the local file.
> Thanks for clarifying that. I was trying to write a simple command with
> this, but I have a feeling I am over simplifying.
> This is my attempt,
> (defun foo(name)
> (interactive "s Tag:")
> (print (semanticdb-find-tags-by-name name nil t)))
> Of course this is extremely crude, but for the future I wanted to get a
> prompt of the various function definitions maybe in a separate *Help
> like* buffer.
> Can you point me in the right direction?
> PS: I am a huge lisp newbie, so if possible be a little verbose. :-P
> Appreciate you working on CEDET. It has simplified my life immensely. :)