[分享]Emacs中:Recursive `require' for feature `sb-info'问题的解决。

Vim、Emacs配置和使用
回复
zhangsong023
帖子: 768
注册时间: 2006-09-20 19:56

[分享]Emacs中:Recursive `require' for feature `sb-info'问题的解决。

#1

帖子 zhangsong023 » 2007-07-23 14:31

相信很多人都遇到了,所以开一帖说明一下。
安装了cedet后,准确的说应该是speedbar后,使用muse、emacs-wiki以及按C-h i会报这个错误。
这是speedbar的一个bug,解决方法。
在speedbar安装目录下sb-info.el中

代码: 全选

(eval-after-load "info" '(require 'sb-info))

这一行前面添加

代码: 全选

(provide 'sb-info)
然后把这个文件重新编译一下(emacs中, M-x byte-compile-file),用编译出来的文件sb-info.elc替换原来的sb-info.elc,搞定。
至于你speedbar中的sb-info.el、sb-info.elc在哪儿,随安装方式的不同而不同(源里或者自编译),用find找吧。

PS,如果你是7.10,恭喜,升级到cedet 1.0 pre4 就不存在这个问题了,并且也不用设置semantic的idle time了,升级就是好东西。
回复