ESS 产生 "Variable binding depth exceeds max-specpdl-size"

ESS produces "Variable binding depth exceeds max-specpdl-size"

我正在尝试 ESS (Emacs Speaks Statistics)。

问题是:由于以下错误,Ctrl-P 和向上箭头在 任何缓冲区 上被禁用:

Variable binding depth exceeds max-specpdl-size

触发器是.emacs.el

中的以下行
(require 'ess-site)

需要这一行to load ESS。如果我删除这一行,那么问题就不会发生,但是,很明显,我不能使用 ESS。

备注:

环境:

你可以试试

(setq max-specpdl-size 32000)

M-x describe-variable max-specpdl-size 一些信息

我在 python-mode 和 rope 上遇到过这个问题,但从未在 ESS 上遇到过。

解决方法:更改某些设置的顺序。

我的 .emacs.el 有平滑滚动设置 (A)

(require 'smooth-scrolling)
(setq smooth-scroll-margin 5)

以及初始文件 (B)

(find-file "~/init.org")

(A) 应该在 (B) 之前加载。在我之前的 .emacs.el 中,(B) 在 (A) 之前加载,这导致了问题。 (我不知道我在问题中描述的错误的确切原因。)