简体   繁体   English

Emacs CEDET:跳转到符号

[英]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. 我已经阅读了Alex Ott关于Emacs的CEDET出色指南 ,而且我认为我知道如何正确设置EDE项目。

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. 但是,当我尝试使用命令semantic-complete-jump-local (Cc , j)跳转到本地符号(例如C ++中的main()函数semantic-complete-jump-local (Cc , j) ,即使我正在调用,也会收到错误[no match]在定义符号的.cpp文件中使用此命令。

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. 另外,当我尝试使用semantic-complete-jump-global (Cc , J)到在不同文件上具有多个定义的符号(例如,多个main()函数)时,CEDET抱怨[not unique]但是它没有给出我可以选择想要查看的符号。 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 ? 找到我感兴趣的符号的唯一方法是使用<TAB>缓冲区逐个缓冲区循环浏览所有选项,直到找到我感兴趣的符号为止。是否有一种方法可以从中选择所需的符号列表? Ideally, it would be great to get an autocomplete list similar to those that Emacs helm (formerly known as Anything ) provides. 理想情况下,获得与Emacs 掌舵人 (以前称为Anything )提供的清单类似的自动完成清单将是很棒的。

This is all with Emacs 24.2.1 on Linux with CEDET 1.1 . 在具有CEDET 1.1的 Linux上, Emacs 24.2.1就是所有这些。

Had you tried to use semantic-ia-fast-jump command? 您是否曾尝试使用semantic-ia-fast-jump命令? 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. 我刚刚尝试了一下,它正确地跳到了在父类中声明的变量,该变量在层次结构中高3级。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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