gpt4 book ai didi

emacs - SLIME who-用 'nesting exceeds max-lisp-eval-depth' 报错

转载 作者:太空宇宙 更新时间:2023-11-03 19:02:10 27 4
gpt4 key购买 nike

使用 Spacemacs 0.105,更新了所有包。

使用 Slime 的 who-calls 符号错误,嵌套超过 max-lisp-eval-depth

我试过设置评估深度

(setq max-lisp-eval-depth 10000)

然后给我这个错误:Variable binding depth exceeds max-specpdl-size

然后我也尝试设置它

(setq max-specpdl-size 32000)

然后又给我 eval-depth 错误,所以它只是在兜圈子。

有什么想法吗?

最佳答案

我用我的 emacs 和 slime 试过了

您建议的功能代码是:

(defun fun-1 () (fun-2)) 

(defun fun-2 () '1)

然后将光标放在每个函数之后,然后按 C-x C-e

用它来评估这个表达式

那么你要找的函数就是 slime-who-calls

M-x slime-who-calls [ret]

输入 fun-2

它将打开一个新的缓冲区

(No location)
FUN-1

添加捕获

enter image description here

关于emacs - SLIME who-用 'nesting exceeds max-lisp-eval-depth' 报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35252828/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com