swank 服务器 *swank-debugger-condition*

swank server *swank-debugger-condition*

我是 Lisp 的新手,在 Emacs 和 Slime 中工作时,我经常遇到这个错误

Error: The variable SWANK/SBCL::*SWANK-DEBUGGER-CONDITION* is unbound.

我花了很长时间在谷歌上搜索这个,但找不到对那个变量的引用。它是什么?它应该绑定到什么?

这似乎是你的 slime 版本的问题:

https://github.com/slime/slime/issues/320

所以使用已故的粘液 confi with

Quicklisp-slime-helper makes it easy to use SLIME from Quicklisp.

To use it, load quicklisp in your Common Lisp implementation, then evaluate:

(ql:quickload "quicklisp-slime-helper")

That command will create a file in the Quicklisp base directory called "slime-helper.el". Loading that file will add the Quicklisp slime path to your Emacs load-path.

In your ~/.emacs, you could have something like this:

(load (expand-file-name "~/quicklisp/slime-helper.el")) (setq inferior-lisp-program "sbcl")

quicklisp-slime-helper is available under the MIT license; see LICENSE.txt for details.