我正在尝试使用Emacs trunk的cc-mode 5.32.1。当我编译时,我得到这些错误
cc-mode.el:596:29:Error: Symbol's function definition is void: byte-compile-obsolete
Compiling file /home/per/pnw/emacs/cc-mode-5.32.1/cc-styles.el at Sun Oct 2 12:28:53 2011
cc-styles.el:654:29:Error: Symbol's function definition is void: byte-compile-obsolete
加载完成没有错误,但是当我尝试在我的新版本的c模式中编辑时,我得到了这些错误:
Error during redisplay: (void-function buffer-syntactic-context) [2 times]
byte-code: End of buffer [3 times]
ad-Orig-c-indent-line: Wrong type argument: listp, cc-bytecomp-ignore-var:c-syntactic-contextError during redisplay: (void-function buffer-syntactic-context) [2 times]
c-in-literal: Symbol's function definition is void: buffer-syntactic-context
ad-Orig-c-indent-line: Wrong type argument: listp, cc-bytecomp-ignore-var:c-syntactic-contextError during redisplay: (void-function buffer-syntactic-context)
c-in-literal: Symbol's function definition is void: buffer-syntactic-context
ad-Orig-c-indent-line: Wrong type argument: listp, cc-bytecomp-ignore-var:c-syntactic-contextError during redisplay: (void-function buffer-syntactic-context)
c-in-literal: Symbol's function definition is void: buffer-syntactic-context [2 times]
是否有一个简单的方法可以解决这个问题,或者我应该等待emacs开发人员解决这个问题。我知道很多关于Emacs-Lisp的事情,但是这个问题比我好。
也许是一个提示:当我查找buffer-syntactic-context
时,我得到了
buffer-syntactic-context is an alias for `cc-bytecomp-ignore-fun:buffer-syntactic-context',
which is not defined. Please make a bug report.
答案 0 :(得分:0)
这已在CC-Mode版本5.32.2中修复,这意味着它现在与Emacs trunk兼容。谢谢艾伦。