CC-Mode 5.32.1 与最新的 Emacs
我正在尝试使用 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-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-syntropic-context 时,我得到
buffer-syntactic-context is an alias for `cc-bytecomp-ignore-fun:buffer-syntactic-context',
which is not defined. Please make a bug report.
I'm trying cc-mode 5.32.1 with Emacs trunk. When I compile I get these errors
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
Load completes without erros but I when I try to edit in my new version of c-mode I get these errors:
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]
Is there an easy way out of this problem or should I wait for the emacs developers to fix this. I know quit a lot about Emacs-Lisp but this problem beats me.
Maybe a hint: When I lookup buffer-syntactic-context
i get
buffer-syntactic-context is an alias for `cc-bytecomp-ignore-fun:buffer-syntactic-context',
which is not defined. Please make a bug report.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此问题已在 CC-Mode 版本 5.32.2 中修复,这意味着它现在与 Emacs trunk 兼容。谢谢艾伦。
This has been fixed in CC-Mode version 5.32.2 meaning it's now compatible with Emacs trunk. Thanks Alan.