+ -
当前位置:首页 → 问答吧 → emacs 使用CEDET补全C函数发生异常??

emacs 使用CEDET补全C函数发生异常??

时间:2009-11-28

来源:互联网

RT~~
我在cedet的semantic补全的时候,发生了下列错误信息

semantic-ctxt-current-symbol-default: Wrong type argument: syntax-table-p, nil

下面是我的配置文件关于代码补全的部分
代码:
;;补全设置 control-\
;;;;配置Sementic的检索范围
(semantic-load-enable-code-helpers)
(setq semanticdb-project-roots 
 (list
 (expand-file-name "/")))
(defun my-indent-or-complete ()
 (interactive)
 (if (looking-at "\\>")
 (hippie-expand nil)
 (indent-for-tab-comman))
)
(autoload 'senator-try-expand-semantic "senator")
(setq hippie-expand-try-functions-list
 '(
 senator-try-expand-semantic
 try-expand-dabbrev
 try-expand-dabbrev-visible
 try-expand-dabbrev-all-buffers
 try-expand-dabbrev-from-kill
 try-expand-list
 try-expand-list-all-buffers
 try-expand-line
 try-expand-line-all-buffers
 try-complete-file-name-partially
 try-complete-file-name
 try-expand-whole-kill
 )
)
(global-set-key [(meta \\)] 'my-indent-or-complete)
(global-set-key [(control \\)] 'senator-completion-menu-popup)
搞了很久是在没有办法了, 请各位知道的朋友帮个忙。

作者: firefoxmmx   发布时间: 2009-11-28

如果是VIM的omnicppcomplete, 我倒真有解决办法.

作者: kevinlei   发布时间: 2009-11-28

很简单,不用这玩意补全呗。
http://ahei.yo2.cn/auto-complete_yasnippet.htm

作者: zhou3345   发布时间: 2009-11-28

感谢楼市我去试试。

作者: firefoxmmx   发布时间: 2009-11-29

没有配置成功。。

作者: firefoxmmx   发布时间: 2009-11-30

你可用试着给博主发邮件咨询一下:)

作者: zhou3345   发布时间: 2009-11-30

热门下载

更多