简体   繁体   中英

Emacs CEDET: Jumping to symbols

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 (eg the main() function in C++) using the command semantic-complete-jump-local (Cc , 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 (Cc , J) to a symbol with multiple definitions on different files (eg 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 .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM