gpt4 book ai didi

Emacs lua-mode(文件模式规范错误)

转载 作者:行者123 更新时间:2023-12-02 05:10:57 25 4
gpt4 key购买 nike

我得到以下错误

File mode specification error: (error "Unknown rx form `group-n'")

当我尝试在 emacs 中编辑 .lua 文件时。我使用 GNU Emacs 23.3.1,我的 .emacs 文件中有以下内容:

(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
(add-to-list 'interpreter-mode-alist '("lua" . lua-mode))

我从 http://immerrr.github.com/lua-mode/ 安装了 lua-mode .我尝试使用 --debug-init 选项运行 emacs,但它没有进入调试器,而是 .lua 文件以 text-mode 而不是 lua模式..

(另见 Emacs lua-mode issue: (void-function interactively-called-p))

最佳答案

您的 Emacs 正在提示,因为它对最近一次提交中 rx 宏中使用的 group-n 符号一无所知,这可能是因为该符号只是介绍于 Emacs 24.2而你的年龄有点大。

我必须承认,在编写代码时,我认为 rx 包要成熟得多,甚至懒得在 Emacs 新闻中查找它的更改。所以,这里有两个选择:

  • 要么将 Emacs 更新到 24.2
  • 或者你可以降级到older revision等我有机会重写那段代码。

UPD:问题已在上游修复,代码再次与 Emacs23 兼容。

关于Emacs lua-mode(文件模式规范错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15489084/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com