我正在處理一個大型的C++項目。我在過去的六個月裏一直在使用emacs。 我嘗試配置CEDET,以便能夠輕鬆導航,但我發現一些問題。Emacs源代碼導航功能
1.-有時語義不會找到某些符號,有時他不會...我不清楚哪些文件是語義索引。 我曾嘗試使用EDE(以下本文http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html的說明),但我已經發現了一些問題,也...
- 我有同一項目的多個版本(發行版),每一個在其自己的夾。我如何告訴emacs我正在使用哪個項目?
- 我該如何告訴ede在哪裏尋找我的頭文件?我可以只指定一個根目錄,而語義將搜索所有子目錄中的頭文件嗎?
2.-我前段時間在和vim + cscope一起工作,我記得有一種方法可以在符號棧(Ctrl-t)中回溯。在emacs中有這樣的東西嗎?
P.D.>一些數據使問題更清楚。
我有同一個項目的多個版本。 每個人都有自己的根目錄。 每個項目都有一個子目錄內的多個模塊。 每個模塊中都有頭文件。
/home/user/
|
\Release-001
| |
| \makefile
| \ Module-001
| | |
| | \makefile
| | \subdir-001
| | | \header-001.h
| | | \header-002.h
| | \subdir-002
| | | \header-003.h
| \ Module-002
| | |
| | \makefile
| | \subdir-003
| | | \header-004.h
| | | \header-005.h
| | \subdir-004
| | | \header-006.h
|
\Release-002
| |
| \makefile
| \ Module-001
| | |
| | \makefile
| | \subdir-001
| | | \header-001.h
| | | \header-002.h
| | \subdir-002
| | | \header-003.h
| \ Module-002
| | |
| | \makefile
| | \subdir-003
| | | \header-004.h
| | | \header-005.h
| | \subdir-004
| | | \header-006.h
這是我的.emacs
;; Cedet load commands
(add-to-list 'load-path "~/emacs-dir/cedet/cedet")
(load-file "~/emacs-dir/cedet/cedet/common/cedet.el")
;; EDE: activating mode.
(global-ede-mode t)
;; Projects definition
(ede-cpp-root-project "Release-001"
:name "Release-001"
:file "~/Release-001/makefile"
:include-path '("/"
)
:system-include-path '("~/exp/include")
:spp-table '(("SUSE9" . "")
)
)
(ede-cpp-root-project "Release-002"
:name "Release-002"
:file "~/Release-002/makefile"
:include-path '("/"
)
:system-include-path '("~/exp/include")
:spp-table '(("SUSE9" . "")
)
)
只是爲了讓你知道...我使用Emacs的(-nw)家用機版工作有關EDE的配置,我有。
您遇到過EDE有哪些問題? – 2010-08-19 09:20:48
我編輯了這個問題來添加一些新的信息。 感謝您的關注。 – thamurath 2010-08-19 10:30:14