Emacs 和 slime 停止与我合作

发布于 2024-07-11 11:30:01 字数 538 浏览 5 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

戏舞 2024-07-18 11:30:01

您是否清除了通过 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.

別甾虛僞 2024-07-18 11:30:01

我同意怀远的观点,即较旧的文件可能会被拾取。

尝试使用 (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 of require. (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 of swank-loader.lisp. I think that will fix it for sure, but I am not sure why it doesn't work to begin with.

七婞 2024-07-18 11:30:01

谢谢大家,~/.emacs:

(setq inferior-lisp-program "<path-to-lisp-compiler>/bin/lisp")
(setq slime-backend "<path-to-slime>/swank-loader.lisp")
(add-to-list 'load-path "<path-to-slime>/")
;;(require 'slime)
(load-file "<path-to-slime>/slime.el")
;;(slime-setup)
(slime-setup '(slime-fancy))

有效:)

Thanks guys, ~/.emacs:

(setq inferior-lisp-program "<path-to-lisp-compiler>/bin/lisp")
(setq slime-backend "<path-to-slime>/swank-loader.lisp")
(add-to-list 'load-path "<path-to-slime>/")
;;(require 'slime)
(load-file "<path-to-slime>/slime.el")
;;(slime-setup)
(slime-setup '(slime-fancy))

works :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文