emacs中使用slime的一个异常:“Lisp connection closed unexpectedly:..."

自:点击打开链接

common lisp编程调用某函数处理字符串时发生错误,导致slime关闭,错误如下:

"Lisp connection closed unexpectedly: connection broken by remote peer"

 

查找资料,在之前的邮件记录中发现解决方法:

Add ":coding-system utf-8-unix" to the sbcl entry in your "slime-lisp-implementations",and set "slime-net-coding-system" to "utf-8-unix"。

 

因此修改.emacs配置文件,添加如下语句:

(setq slime-net-coding-system :utf-8-unix)
(setq slime-lisp-implementations
           '((sbcl ("/usr/bin/sbcl") :coding-system utf-8-unix)))

 

顺利解决。

 

资料来源:http://comments.gmane.org/gmane.lisp.slime.devel/7503


你可能感兴趣的:(emacs中使用slime的一个异常:“Lisp connection closed unexpectedly:...")