简体   繁体   English

emacs23过于频繁地弹出调试器

[英]emacs23 pops up debugger way too frequently

Since I've upgraded to Ubuntu lucid and emacs23, Emacs pops up the debugger in situations, where emacs22 does not. 自从我升级到Ubuntu lucid和emacs23之后,Emacs会弹出调试器,而emacs22却没有。

For example, when hitting Cc Cc in org-mode, emacs22 simply states can do nothing useful at this location , whereas in emacs23 the debugger shows up. 例如,当在组织模式下命中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)

That only illustrates the pattern -- the behavior is not limited to org-mode. 这仅说明了模式 - 行为不仅限于组织模式。 Occurring every 3 minutes, it really annoys me. 它每3分钟发生一次,真让我烦恼。 How can I prevent it? 我该怎样预防呢?

I've already tried to stop this using debug-on-error and stack-trace-on-error : it didn't work. 我已经尝试使用debug-on-errorstack-trace-on-error来阻止它:它不起作用。

Chances are that something is setting debug-on-error after you've configured it. 有可能在您配置它之后设置了错误调试。

Some ways to confirm: 一些确认方法:

Start Org Mode, press Cc Cc to enter the debugger, and q to exit again. 启动组织模式,按Cc Cc进入调试器, q再次退出。 Now Mx set-variable RET debug-on-error RET nil RET , and try it again. 现在Mx set-variable RET debug-on-error RET nil RET ,然后再试一次。

Next, try starting emacs with the -q argument (to avoid executing your init file), and then entering org mode and hitting Cc Cc . 接下来,尝试使用-q参数启动emacs(以避免执行init文件),然后进入org模式并点击Cc Cc This should not trigger the debugger. 这不应该触发调试器。

You could use Mx rgrep RET debug-on-error RET (or maybe debug-on-error t ) on your site-lisp and custom lisp directories, to help track down which library is responsible. 您可以在site-lisp和自定义lisp目录debug-on-error使用Mx rgrep RET debug-on-error RET (或者可能是debug-on-error debug-on-error t ),以帮助跟踪哪个库负责。

As I could replicate your issue, I've just done this for myself. 我可以复制你的问题,我刚刚为自己做了这件事。 For me, the culprit was: (load "nxhtml/autostart.el") . 对我来说,罪魁祸首是:( (load "nxhtml/autostart.el") I'm upgrading nxhtml now, which I suspect will resolve things in my case. 我现在正在升级nxhtml,我怀疑这会解决我的问题。

Edit: or not. 编辑:或不。

The current version of nxhtml has moved the statement from autoload.el into nxhtml-base.el. 当前版本的nxhtml已将语句​​从autoload.el移至nxhtml-base.el。 If this is the same culprit for you, you could either edit that file, or make sure that your customisation of the variable happens after nxhtml's autostart file executes. 如果这是您的罪魁祸首,您可以编辑该文件,或确保在nxhtml的自动启动文件执行后自定义变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM