Emacs 和 slime 停止与我合作
我正在尝试使用 CVS (2009-01-05) 中的 slime,但不断收到此错误:
LOAD: A file with name /usr/share/common-lisp/source/slime/swank-loader.lisp does not exist
我已将 .emacs 精简为:
(setq inferior-lisp-program "/usr/bin/clisp")
(add-to-list 'load-path "/home/ssm/lisp/slime/")
(require 'slime)
(slime-setup)
我已删除了我的 ~/.slime 目录,以 'emacs -q 开头'并评估了上面的代码,但当我运行 slime (通过 Mx slime)时,我不断收到 LOAD 错误。 关于如何修复此错误有什么想法吗?
FWIW,我尝试通过 apt-get 安装 slime,但我也不断收到有关 cl-swank 被破坏的错误。 那是一个完全不同的故事。
I'm trying to use slime from CVS (2009-01-05) but keep getting this error:
LOAD: A file with name /usr/share/common-lisp/source/slime/swank-loader.lisp does not exist
I've stripped my .emacs down to just:
(setq inferior-lisp-program "/usr/bin/clisp")
(add-to-list 'load-path "/home/ssm/lisp/slime/")
(require 'slime)
(slime-setup)
I've deleted my ~/.slime directory, started with 'emacs -q' and eval'd the above code but I keep getting the LOAD error when I run slime (via M-x slime). Any ideas on how to fix this error?
FWIW, I've tried to install slime via apt-get but I keep getting errors there too about cl-swank being broken. That's a whole different story.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否清除了通过 apt-get 安装的 slime pkg? 看起来 emacs 仍在读取 apt-get 旧的特定于站点的配置设置。 尝试使用 -Q 选项启动 emacs,这会阻止加载特定于站点(以及特定于用户)的自定义,并查看问题是否仍然出现。
Have you purged the slime pkg you installed via apt-get? It looks like emacs is still reading the old site-specific configuration setup by apt-get. Try starting emacs with the -Q option, which prevents loading of site-specific (as well as user specific) customization, and see if the problem still occur.
我同意怀远的观点,即较旧的文件可能会被拾取。
尝试使用
(load-file "/path/to/slime.el")
而不是require
。 (您确实从旧版本中删除了 .elc 文件,对吧?emacs 会优先从 .elc 文件加载而不是 .el 文件,即使 .el 较新。)接下来要尝试的事情是 Mx custom-variable slime-backend 并将其设置为 swank-loader.lisp 的绝对路径。 我认为这肯定会解决它,但我不确定为什么它一开始就不起作用。
I agree with huaiyuan that older files may be being picked up.
Try
(load-file "/path/to/slime.el")
instead ofrequire
. (You did remove the .elc files from your old versions, right? emacs will load from .elc files in preference to .el files, even when the .el is newer.)The next thing to try is
M-x customize-variable slime-backend
and setting that to the absolute path ofswank-loader.lisp
. I think that will fix it for sure, but I am not sure why it doesn't work to begin with.谢谢大家,~/.emacs:
有效:)
Thanks guys, ~/.emacs:
works :)