LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
发表于 2009-11-28 02:27:20 | 显示全部楼层 |阅读模式
RT~~
我在cedet的semantic补全的时候,发生了下列错误信息

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

下面是我的配置文件关于代码补全的部分

  1. ;;补全设置 control-\
  2. ;;;;配置Sementic的检索范围
  3. (semantic-load-enable-code-helpers)
  4. (setq semanticdb-project-roots
  5.    (list
  6.         (expand-file-name "/")))
  7. (defun my-indent-or-complete ()
  8.    (interactive)
  9.    (if (looking-at "\\>")
  10.     (hippie-expand nil)
  11.     (indent-for-tab-comman))
  12. )
  13. (autoload 'senator-try-expand-semantic "senator")
  14. (setq hippie-expand-try-functions-list
  15.     '(
  16.   senator-try-expand-semantic
  17.   try-expand-dabbrev
  18.   try-expand-dabbrev-visible
  19.   try-expand-dabbrev-all-buffers
  20.   try-expand-dabbrev-from-kill
  21.   try-expand-list
  22.   try-expand-list-all-buffers
  23.   try-expand-line
  24.         try-expand-line-all-buffers
  25.         try-complete-file-name-partially
  26.         try-complete-file-name
  27.         try-expand-whole-kill
  28.         )
  29. )
  30. (global-set-key [(meta \\)] 'my-indent-or-complete)
  31. (global-set-key [(control \\)] 'senator-completion-menu-popup)
复制代码


搞了很久是在没有办法了, 请各位知道的朋友帮个忙。
发表于 2009-11-28 03:14:53 | 显示全部楼层
如果是VIM的omnicppcomplete, 我倒真有解决办法.
回复 支持 反对

使用道具 举报

发表于 2009-11-28 11:57:19 | 显示全部楼层
很简单,不用这玩意补全呗。
http://ahei.yo2.cn/auto-complete_yasnippet.htm
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-29 01:46:27 | 显示全部楼层
感谢楼市我去试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-29 21:00:06 | 显示全部楼层
没有配置成功。。
回复 支持 反对

使用道具 举报

发表于 2009-11-29 22:44:12 | 显示全部楼层
你可用试着给博主发邮件咨询一下:)
回复 支持 反对

使用道具 举报

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

本版积分规则

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