LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1299|回复: 4

arch下如何配置ecb(Emacs Code Browser)??

[复制链接]
发表于 2005-12-6 08:04:01 | 显示全部楼层 |阅读模式
我一直在windows下使用source insight 3.
最近听说emacs + ecb(Emacs Code Browser) 就可以做到了。

我按照网上的教程,弄了好长时间也没有弄好。
(网上有个文说在debian下直接apt-get install ecb 即可)
但arch目前好像也没有这个包。

请高手给个提示!

thanks !
 楼主| 发表于 2005-12-12 22:45:34 | 显示全部楼层
top  top top!
回复 支持 反对

使用道具 举报

发表于 2005-12-13 09:58:53 | 显示全部楼层
我不会用emacs,有时间要学一下。
在vi下我使用vim+cscope也可以做到象source insight的功能:

  It is designed to answer questions like:
       Where is this symbol used?
       Where is it defined?
       Where did this variable get its value?
       What is this global symbol's definition?
       Where is this function in the source files?
       What functions call this function?
       What functions are called by this function?
       Where does the message "out of space" come from?
       Where is this source file in the directory structure?
       What files include this header file?

  Cscope answers these questions from a symbol database that it builds the
  first time it is used on the source files.  On a subsequent call, cscope
  rebuilds the database only if a source file has changed or the list of
  source files is different.  When the database is rebuilt the data for the
  unchanged files is copied from the old database, which makes rebuilding
  much faster than the initial build.

philix试过了吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-13 13:59:27 | 显示全部楼层
vim +cscope ? can system stdinc  be added to it's database?
however ,I'll try it .
given that you have bebuilded your vim+cscope succesful, give me a instruction!
thanks
回复 支持 反对

使用道具 举报

发表于 2005-12-13 14:55:34 | 显示全部楼层
The headers included by the source file will be automatically examined by cscope. IMHO, as for investigating the APIs from library, you best bet is to use the `man` page, and it's quite easy in vim: just hit the `K`(shift+k) key under the identifier.
to increase the availability of cscope under vim, there is a handy script for it: `cscompe.vim`. Google the filename, and you will find the download link.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表