1

我正在尝试使用 Emacs 中继的 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-mode 中进行编辑时,出现以下错误:

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.
4

1 回答 1

0

这已在 CC-Mode 版本 5.32.2 中得到修复,这意味着它现在与 Emacs 主干兼容。谢谢艾伦。

于 2011-10-15T20:00:16.587 回答