【发布时间】:2013-12-11 20:11:40
【问题描述】:
当我尝试在 Emacs 24.2.1 下对 csharp-mode 进行字节编译时,我收到以下错误:
csharp-mode.el:2028:1:Error: Symbol's value as variable is void: csharp-enum-decl-re
This post 确认了同样的编译问题并提供了以下补救措施:
我尝试通过 C-x C-e 手动定义 csharp-enum-decl-re 定义常量;这样就可以编译了。
这个补救措施也对我有用!但是,这种补救措施给我留下了几个问题:
- 没有预定义
csharp-enum-decl-re,为什么csharp-mode.el字节编译失败? (csharp-mode.el 的源代码请参见第一个链接。) - 在不修改 csharp-mode.el 的情况下,有没有更好的解决这个编译问题的方法?
-
第 2028 行 指示的错误涉及以下定义。
csharp-enum-decl-re的依赖在哪里?
(defconst csharp-font-lock-keywords-2 (c-lang-const c-matchers-2 csharp)
"Fast normal highlighting for C# mode.")
【问题讨论】:
标签: c# emacs compilation compiler-errors elisp