【问题标题】:I get lots of warning and errors when installing Clojure in Emacs在 Emacs 中安装 Clojure 时收到很多警告和错误
【发布时间】:2009-09-14 15:40:05
【问题描述】:

我使用了 EPL 包管理器并安装了 clojure -mode.el v1.5

我在安装主模式时遇到这些错误

In clojure-mode:
clojure-mode.el:174:34:Warning: reference to free variable `paredit-mode'
clojure-mode.el:174:51:Warning: reference to free variable `paredit-version'

In clojure-font-lock-extend-region-def:
clojure-mode.el:210:33:Warning: reference to free variable `font-lock-beg'
clojure-mode.el:217:30:Warning: assignment to free variable `font-lock-beg'
clojure-mode.el:218:33:Warning: reference to free variable `font-lock-end'
clojure-mode.el:220:19:Warning: assignment to free variable `font-lock-end'

In clojure-font-lock-extend-region-comment:
clojure-mode.el:235:26:Warning: reference to free variable `font-lock-beg'
clojure-mode.el:232:49:Warning: reference to free variable `font-lock-end'
clojure-mode.el:236:17:Warning: assignment to free variable `font-lock-beg'
clojure-mode.el:240:17:Warning: assignment to free variable `font-lock-end'

In clojure-indent-function:
clojure-mode.el:357:33:Warning: reference to free variable
    `calculate-lisp-indent-last-sexp'

In clojure-slime-config:
clojure-mode.el:533:11:Warning: assignment to free variable
    `swank-clojure-classpath'

In end of data:
clojure-mode.el:630:1:Warning: the following functions are not known to be defined:
    imenu--generic-function, slime-setup,
    swank-clojure-slime-mode-hook

然后当我尝试 M-x clojure-install 我得到

cannot find file cmdproxy.exe in the emac's bin folder.

我不明白这些是什么意思。请帮我。我不想使用 ClojureBox。

【问题讨论】:

标签: emacs clojure


【解决方案1】:

您很可能可以忽略编译错误(这是您在第一个块中报告的内容)。这些变量可能仅在已加载适当的包时使用。

关于cmdproxy.exe 错误,您似乎正在Windows 中运行。那是对的吗? 该可执行文件应该与您的 Emacs 可执行文件位于同一目录中。如果不是,那么您应该重新安装 Emacs。如果它在该目录中,请检查变量 exec-path 的值(通过键入 C-h v exec-path RET)以确保包含 Emacs 可执行文件的目录在该 exec-path 中。

我在普通 Windows 中从 Emacs 运行子进程时遇到了问题(因为没有安装我常用的可执行文件,例如 diff)。所以我建议安装Cygwin 并从 Cygwin shell 运行 Emacs。最值得注意的是因为M-x clojure-install 需要安装git(如果您尚未安装它)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-08-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-05
    • 2019-12-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多