arduino-mode Emacs 文件规范错误
arduino-mode Emacs file specification error
当我尝试编辑 Arduino Sketch(*.ino 文件)时,出现此错误:
Eval error in the ‘c-lang-defconst’ for ‘c-constant-kwds’ in arduino-mode:
Eval error in the ‘c-lang-defconst’ for ‘c-basic-matchers-before’ in arduino-mode:
Eval error in the ‘c-lang-defconst’ for ‘c-matchers-2’ in arduino-mode:
File mode specification error: (invalid-function (append (quote (HIGH LOW INPUT OUTPUT INPUT_PULLUP LED_BUILTIN true false)) (c-get-lang-constant (quote c-constant-kwds) (quote (cc-langs)))))
即使在标准示例->基本->Blink.ino 文件中也会发生这种情况。
我的 .emacs.d/init.el 文件包含这些行:
(setq auto-mode-alist (cons '("\.\(pde\|ino\)$" . arduino-mode) auto-mode-alist))
(autoload 'arduino-mode "arduino-mode" "Arduino editing mode." t)
我找不到“c-matchers-2
”文件。
这是 Emacs 26.1。
任何人都可以指出修复此错误的方向吗?
在此先感谢您的帮助和建议。
-凯文
@nega,你是对的,是版本问题。当我使用M-x list-packages
时,我看到我安装了20151017.2335版本,最新的是stardivirer的20180509.36。 arduino-mode 包在 melpa 存储库中。
非常感谢您为我指明正确的方向。
-凯文
当我尝试编辑 Arduino Sketch(*.ino 文件)时,出现此错误:
Eval error in the ‘c-lang-defconst’ for ‘c-constant-kwds’ in arduino-mode:
Eval error in the ‘c-lang-defconst’ for ‘c-basic-matchers-before’ in arduino-mode:
Eval error in the ‘c-lang-defconst’ for ‘c-matchers-2’ in arduino-mode:
File mode specification error: (invalid-function (append (quote (HIGH LOW INPUT OUTPUT INPUT_PULLUP LED_BUILTIN true false)) (c-get-lang-constant (quote c-constant-kwds) (quote (cc-langs)))))
即使在标准示例->基本->Blink.ino 文件中也会发生这种情况。
我的 .emacs.d/init.el 文件包含这些行:
(setq auto-mode-alist (cons '("\.\(pde\|ino\)$" . arduino-mode) auto-mode-alist))
(autoload 'arduino-mode "arduino-mode" "Arduino editing mode." t)
我找不到“c-matchers-2
”文件。
这是 Emacs 26.1。
任何人都可以指出修复此错误的方向吗?
在此先感谢您的帮助和建议。
-凯文
@nega,你是对的,是版本问题。当我使用M-x list-packages
时,我看到我安装了20151017.2335版本,最新的是stardivirer的20180509.36。 arduino-mode 包在 melpa 存储库中。
非常感谢您为我指明正确的方向。
-凯文