7

由于我已经升级到 Ubuntu lucid 和 emacs23,在 emacs22 没有的情况下,Emacs 会弹出调试器。

例如,当在 org-mode 中点击 Cc Cc 时,emacs22 只会声明can do nothing useful at this location,而在 emacs23 中会显示调试器。

 Debugger entered--Lisp error: (error "C-c C-c can do nothing useful at this location")
   signal(error ("C-c C-c can do nothing useful at this location"))
   error("C-c C-c can do nothing useful at this location")
   org-ctrl-c-ctrl-c(nil)
   call-interactively(org-ctrl-c-ctrl-c nil nil)

这只说明了模式——行为不限于组织模式。每3分钟发生一次,这真的让我很烦。我该如何预防?

我已经尝试使用debug-on-errorand来阻止stack-trace-on-error它:它没有用。

4

1 回答 1

8

可能是在您配置后设置了错误调试。

一些确认方法:

启动 Org Mode,按C-c C-c进入调试器,然后q再次退出。现在M-x set-variable RET debug-on-error RET nil RET,再试一次。

接下来,尝试使用-q参数启动 emacs(以避免执行您的 init 文件),然后进入 org 模式并点击C-c C-c. 这不应触发调试器。

您可以在您的 site-lisp 和自定义 lisp 目录上使用M-x rgrep RET debug-on-error RET(或可能debug-on-error t),以帮助追踪哪个库负责。

正如我可以复制您的问题一样,我刚刚为自己做了这个。对我来说,罪魁祸首是:(load "nxhtml/autostart.el"). 我现在正在升级 nxhtml,我怀疑这会解决我的问题。

编辑:与否。

当前版本的 nxhtml 已将语句从 autoload.el 移至 nxhtml-base.el。如果这对您来说是同一个罪魁祸首,您可以编辑该文件,或者确保您对变量的自定义发生在 nxhtml 的自动启动文件执行之后。

于 2010-05-20T07:26:09.640 回答