emacs23太频繁地弹出调试器的方式 [英] emacs23 pops up debugger way too frequently

查看:168
本文介绍了emacs23太频繁地弹出调试器的方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



例如,当Cc Cc org-mode,emacs22简单地说可以在这个位置没有用的东西,而在emacs23中,调试器显示。

 调试器输入 -  Lisp错误:(错误Cc Cc可以在这个位置无效)
信号(错误(Cc Cc可以在这个位置无效 )
error(Cc Cc can do nothing useful in this location)
org-ctrl-c-ctrl-c(nil)
调用交互式(org-ctrl-c- ctrl-c nil nil)

只是说明了模式 - 行为不限于org-模式。每3分钟发生一次,真的让我烦恼。我如何防止它?



我已经尝试使用 debug-on-error stack-trace-on-error :它没有起作用。

解决方案



有些方法可以确认:



启动组织模式,按 Cc Cc 进入调试器,然后再次退出 q 。现在 Mx set-variable RET debug-on-error RET nil RET ,然后重试。



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



您可以使用 Mx rgrep RET debug-on-error RET (或者也许 debug-on-error t )在您的站点-lisp和自定义lisp目录,以帮助追踪哪个库负责。



正如我可以复制你的问题,我刚刚完成这为我自己。对我来说,罪魁祸首是:(加载nxhtml / autostart.el)。我现在正在升级nxhtml,我怀疑在我的情况下会解决问题。



编辑或否。



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


Since I've upgraded to Ubuntu lucid and emacs23, Emacs pops up the debugger in situations, where emacs22 does not.

For example, when hitting C-c C-c in org-mode, emacs22 simply states can do nothing useful at this location, whereas in emacs23 the debugger shows up.

 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. 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.

解决方案

Chances are that something is setting debug-on-error after you've configured it.

Some ways to confirm:

Start Org Mode, press C-c C-c to enter the debugger, and q to exit again. Now M-x set-variable RET debug-on-error RET nil RET, and try it again.

Next, try starting emacs with the -q argument (to avoid executing your init file), and then entering org mode and hitting C-c C-c. This should not trigger the debugger.

You could use M-x 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.

As I could replicate your issue, I've just done this for myself. For me, the culprit was: (load "nxhtml/autostart.el"). I'm upgrading nxhtml now, which I suspect will resolve things in my case.

Edit: or not.

The current version of nxhtml has moved the statement from autoload.el into 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.

这篇关于emacs23太频繁地弹出调试器的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆