7

我正在使用带有粘液的 SBCL,并具有以下代码:

(swank::eval-in-emacs
  '(with-current-buffer (slime-repl-buffer)
     (insert (propertize "foo" 'font-lock-face '(:foreground "red")))))

(print "here is some text")

一般来说,如果我尝试执行任何带有swank::前缀的东西,emacs 会给出一个安全错误,这个特定的错误告诉我我需要设置slime-enable-evaluate-in-emacs为 true。这个值在哪里?我一直没能找到一个粘液或 swank 配置。& 设置文件。非常感谢。

4

1 回答 1

5

您可以简单地将其添加到您的 .emacs 中:

(setq slime-enable-evaluate-in-emacs t)

如果非零,劣质 Lisp 可以评估 Emacs 中的任意形式。默认值为 nil,因为此功能可能存在安全风险。

于 2010-04-22T16:04:49.403 回答