CC-Mode 5.32.1 与最新的 Emacs

发布于 2024-12-07 12:16:46 字数 1560 浏览 0 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风吹过旳痕迹 2024-12-14 12:16:46

此问题已在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文