emacs23过于频繁地弹出调试器

art*_*oex 7 emacs upgrade emacs23

自从我升级到Ubuntu lucid和emacs23之后,Emacs会弹出调试器,而emacs22却没有.

例如,当在组织模式下命中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)
Run Code Online (Sandbox Code Playgroud)

这仅说明了模式 - 行为不仅限于组织模式.它每3分钟发生一次,真让我烦恼.我该怎样预防呢?

我已经试图阻止这种使用debug-on-errorstack-trace-on-error:它没有工作.

phi*_*ils 8

有可能在您配置它之后设置了错误调试.

一些确认方法:

启动组织模式,按C-c C-c进入调试器,然后q再次退出.现在M-x set-variable RET debug-on-error RET nil RET,再试一次.

接下来,尝试使用-q参数启动emacs (以避免执行您的init文件),然后进入组织模式并点击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的自动启动文件执行后自定义变量.