Re: Iterative visiting of all source files
RJD <[email protected]> Wed, 11 Feb 2015 11:36:39 +0000 (UTC)
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <[email protected]> |
Eric Ludlam <eric <at> siege-engine.com> writes:
> You can call
>
> M-: (semantic-symref-instantiate) RET
>
> directly to create an instantiation of the global search object.
>
> If you then do:
>
> M-x semantic-symref RET
>
> in some function, and shows you all the hits, you can do:
>
> M-x semantic-symref-data-debug-last-result
>
> There will be a :created-by slot whih will name the tool used, which
> should be global, and not grep.
>
> I hope this helps.
> Eric
>
>
Hi Eric,
thanks for your reply.
I am working on this now, I have now changed my emacs file to use the symbol
global rather than the string pointing to the executable. i.e.
##.emacs##
(setq-default semantic-symref-tool 'global)
##END .emacs##
So now I am testing things out...
I run:
> M-x semantic-symref RET
in some function (let's call it someFunction, and I get the buffer:
> *Symref someFunction
in this buffer I can see:
>d:/a/b/c/header1.h
> [+] class SomeClass {}
>d:a/b/c/header2.h
> [+] class SomeOtherClass {}
>d:a/b/c/header3.h
> [+] class SomeOtherOtherClass {}
>d:a/b/c/source1.cpp
> [+] void aTotallyDifferentFunction( int a, int b)
Where source1.cpp contains aTotallyDifferentFunction() which actually calls
someFunction. So, this all seems fine so far.
Then, in that *Symref buffer I run:
> M-x semantic-symref-data-debug-last-result RET
I get something like this in a new buffer (*Symbol Reference ADEBUG*):
> ] Name: "someFunction"
> ] Class: #'semantic-symref-result
> ] :created-by #<semantic-symref-tool-global semantic-symref-tool-global>
> ] :hit-files #unbound
> ] :hit-text #unbound
> ] :hit-lines #<list o' stuff: 4 entries>
> ] :hit-tags #<TAG LIST: 4 entries>
Is this using GTAGS?
*** PS: Notice that I have not manually instantiated a gtags object. I did
not use:
> M-: (semantic-symref-instantiate) RET
^^^^^ Does this matter? If it does, should I put it in my .emacs file.
Thanks.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/