using cscope with GNU Emacs
来源:互联网 发布:阿里云账号提现 编辑:程序博客网 时间:2024/05/22 06:32
遇到一个问题:
-q cscope: -q option mismatch between command line and old symbol database.
cscope: removed files cscope.po.out and cscope.in.out
google后无果, 直接用cscope提供的interface也是同样的, 发现在建索引的时候如果用了,-q选项, 在查的时候不加,就会把这两个文件删掉.
ok,现在的问题是如何让xemacs.el在调cscope的时候加上-q选项, 直接看xcscope.el, 文档很丰富的,说得也很明白. 要setq cscope-database-regexps变量, 这里可以指定一个项目源代码对应的cross-reference database所在目录, 以及调用cscope时的参数.
现在的设置:
(setq cscope-database-regexps
'(
("^/home/tangyi/program/cc/freebsd8/"
(t ("-q" "-d"))
t
)
("^/home/tangyi/program/cc/nginx-0.8.54/"
(t ("-q" "-d"))
t
)
))
指定-d参数可以让调用时不更新database,在浏览代码时,一般只是加些注释,不会加新的变量,函数,也就是不会更新tag.
btw, 在大项目里加-q很有必要,会建倒排索引,速度快不少.
-q cscope: -q option mismatch between command line and old symbol database.
cscope: removed files cscope.po.out and cscope.in.out
google后无果, 直接用cscope提供的interface也是同样的, 发现在建索引的时候如果用了,-q选项, 在查的时候不加,就会把这两个文件删掉.
ok,现在的问题是如何让xemacs.el在调cscope的时候加上-q选项, 直接看xcscope.el, 文档很丰富的,说得也很明白. 要setq cscope-database-regexps变量, 这里可以指定一个项目源代码对应的cross-reference database所在目录, 以及调用cscope时的参数.
现在的设置:
(setq cscope-database-regexps
'(
("^/home/tangyi/program/cc/freebsd8/"
(t ("-q" "-d"))
t
)
("^/home/tangyi/program/cc/nginx-0.8.54/"
(t ("-q" "-d"))
t
)
))
指定-d参数可以让调用时不更新database,在浏览代码时,一般只是加些注释,不会加新的变量,函数,也就是不会更新tag.
btw, 在大项目里加-q很有必要,会建倒排索引,速度快不少.
- using cscope with GNU Emacs
- Using emacs & cscope
- Thu Apr 7 using cscope in emacs
- Thu Apr 7 using cscope in emacs
- read-python-code-with-cscope-on-emacs
- emacs+cscope
- emacs cscope
- Using CEDET and ECB with Emacs
- GNU/Emacs
- emacs 中的 cscope
- Emacs中使用Cscope
- emacs cscope浏览代码
- emacs 中配置cscope
- Emacs Cscope安装
- emacs + cscope 的使用
- cscope emacs l138kernel
- emacs添加cscope插件
- using cscope + vim
- ubuntu opengl install&&compile
- AT指令编程相关技术问题
- 实用的AT指令
- 实用的AT指令
- 让ubuntu10.04文件浏览器显示文件路径
- using cscope with GNU Emacs
- 2款不错的软件
- 改变ubuntu10.04图标大小
- C# 性能优化方面的总结(转)
- 通用过磅系统
- 他国人在积极转推帮救援,我们在积极删贴
- Delphi中的SendKeys函数 - sndKey32.Pas 下载
- IE6,7下table布局中的图片有空隙,使用隐藏DIV进行解决
- oracle 日常检查