Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs CEDET: Jumping to symbols

Tags:

emacs

cedet

I have read Alex Ott's fantastic guide to CEDET for Emacs, and I think I know how to set up my EDE projects correctly.

However, when I try to jump to a local symbol (e.g. the main() function in C++) using the command semantic-complete-jump-local (C-c , j), I get the error [no match] even though I am calling this command from within the .cpp file where the symbol is defined.

Also, when I try to jump with semantic-complete-jump-global (C-c , J) to a symbol with multiple definitions on different files (e.g. multiple main() functions), CEDET complains with [not unique] but it does not give me a way to choose which symbol I want to see. The only way to find the symbol I am interested in is to cycle through all the options with <TAB> buffer by buffer until I find the one I am interested in. Is there a way to get a list of symbols from where I can choose ? Ideally, it would be great to get an autocomplete list similar to those that Emacs helm (formerly known as Anything) provides.

This is all with Emacs 24.2.1 on Linux with CEDET 1.1.

like image 548
Amelio Vazquez-Reina Avatar asked Oct 14 '12 23:10

Amelio Vazquez-Reina


1 Answers

Had you tried to use semantic-ia-fast-jump command? It uses not only Semantic, but also other data sources, to calculate where to jump. I just tried it, and it correctly jumped to variable, that was declared in the parent class, 3 levels higher in hierarchy.

like image 138
Alex Ott Avatar answered Oct 16 '22 12:10

Alex Ott