Chris Li

Digital design, Lisper,Emacs.

1_01_cscope

安装

cscope-index -r
N cscope-next-file,按文件跳
P cscope-prev-file,按入口跳
n cscope-next-symbol
p cscope-prev-symbol
Q cscope-quit 退出
SPC cscope-show-entry-other-window,显示,并跳转光标
<return> cscope-select-entry-other-window,与上相同,不跳转光标
o cscope-select-entry-one-window,与上相同,跳转光标,且合并窗口
? cscope-help
h cscope-help
c cscope-find-functions-calling-this-function,查找调用这个函数的函数
G cscope-find-global-definition-no-prompting,查找
d cscope-find-this-symbol,查找,有prompt
e cscope-find-egrep-pattern,grep递归操作,有prompt
s cscope-find-this-symbol,查找这个关键字,与grep的区别是信息更详细,且不包括注释部分
f cscope-find-this-file,打开光标处文件
g cscope-find-global-definition,查找定义
i cscope-find-files-including-file,查找哪个文件include了这个文件
t cscope-find-this-text-string,和grep差不多
u cscope-pop-mark,回到上一个mark点
I cscope-index-files,指定index文件
L cscope-create-list-of-files-to-index,加入index文件
E cscope-edit-list-of-files-to-index,编辑index文件list
W cscope-tell-user-about-directory,显示cscope的目录
a cscope-set-initial-directory,设置cscope初始目录
A cscope-unset-initial-directory
C cscope-find-called-functions
D cscope-dired-directory,文件管理
q cscope-bury-buffer
<remap> Prefix Command