Emacs 使用 slime 调用 clisp 失败--无法调用 ASDF
执行到如下顺序时出错
;; Swank started at port: 61252.
CL-USER>
;; Loading file /Users/admin/.slime/fasl/2013-04-02/clisp-2.49-unix-unknown/contrib/swank-mrepl.fas ...
;; Loaded file /Users/admin/.slime/fasl/2013-04-02/clisp-2.49-unix-unknown/contrib/swank-mrepl.fas
;; Loading file /Users/admin/LispBox-0.93/slime-2013-04-05/contrib/swank-asdf.lisp ...
错误提示信息如下:
Could not load ASDF.
Please update your implementation or
install ASDF2 and in your ~/.swank.lisp specify:
(defparameter swank::*asdf-path* #p"/path/containing/asdf/asdf.lisp")
[Condition of type SIMPLE-ERROR]
0: [SKIP] skip (EVAL-WHEN # #)
1: [RETRY] retry (EVAL-WHEN # #)
2: [STOP] stop loading file /Users/admin/LispBox-0.93/slime-2013-04-05/contrib/swank-asdf.lisp
3: [*PROCESS-INPUT] Continue reading input.
4: [ABORT] Return to SLIME's top level.
5: [CLOSE-CONNECTION] Close SLIME connection.
--more--
看这个提示的建议是更新Clisp 或者安装 ASDF2 同时在 slime 的 swank.lisp 文件中指定 ASDF2 的安装路径.
基本没怎么用过 ASDF , 泛泛搜了一下, 也不得要领.... 怎么办呢?
终于发现最简单的办法就是不去加载 slime 的 asdf , 这个可以在 .emacs 中设置, 原来的语句是:
(slime-setup '(slime-fancy slime-asdf slime-banner slime-mrepl))
修改为:
(slime-setup '(slime-fancy slime-banner slime-mrepl))
保存, 重启, 一切OK!
来源:oschina
链接:https://my.oschina.net/u/219279/blog/137972