Emacs - slime 未启动

发布于 2024-08-07 13:16:51 字数 172 浏览 5 评论 0原文

我最近升级到 Emacs 23.1.50,Slime 停止连接 - 它会启动inferior-lisp,但永远不会连接。经过一番调查,我发现如果从 emacs -q 开始,然后一切直到(包括对 slime 的调用)都可以工作。有什么方法可以强制我的其余自定义项等到 slime-repl 连接后才能进行处理?这将解决我眼前的问题。

I recently upgraded to Emacs 23.1.50, and Slime stopped connecting - it would start the inferior-lisp, but never connect. After some investigation, I found that it would work if started from emacs -q and then everything up until and including the call to slime would work. Is there any way to force the remainder of my customizations to wait until the slime-repl has connected in order to be processed? This would solve my immediate issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

负佳期 2024-08-14 13:16:51

根据您的描述,听起来好像 .emacs 中调用 Slime 之前的设置正在破坏 Slime。

一些想法:

  • 获取正式版本(版本号 23.1.1),以防万一您的构建出现奇怪的情况
  • 将 Slime 连接代码移至 .emacs 的前面,从而使您的自定义在建立 slime 连接后进行
  • 实际调试你的 .emacs(慢慢地向前移动 slime 初始化调用,直到它起作用)
  • 尝试在启动 Slime 的调用之后添加 (sit-for 10) 以防出现一些奇怪的同步,

但是,具体来说, Slime 中有一个名为 钩子 'slime-connected-hook,您可以使用它来完成自定义。即,将您的 .emacs 分成两部分(以调用启动 slime 结束第一部分),并注册第二部分以在 Slime 进程连接后加载。

(add-hook 'slime-connected-hook (lambda () (load "~/.emacs.part2.el")))

From your description, it sounds as though a setting in your .emacs before the call to Slime is what is breaking Slime.

A couple of ideas:

  • Get an official release (version number 23.1.1) just in case there's something weird with your build
  • Move the Slime connection code to the front of your .emacs, thereby causing your customizations to happen after the slime connection is made
  • Actually debug your .emacs (slowly move the slime initialization call forward until it works)
  • Try adding (sit-for 10) after the call to start Slime in case there's some weird synchronization going on

But, specifically, there is a hook in Slime named 'slime-connected-hook, which you could use to finish your customizations. i.e. Split your .emacs into two parts (ending the first with a call to start slime), and register the second part to get loaded after the Slime process has connected.

(add-hook 'slime-connected-hook (lambda () (load "~/.emacs.part2.el")))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文