Most likely, after setting up, you set debug-on-error.
Some ways to confirm:
Run Org mode, press Cc Cc to enter the debugger, and q to exit again. Now Mx set-variable RET debug-on-error RET nil RET and try again.
Then try running emacs with the -q argument (to avoid executing the initialization file), and then go into org mode and press Cc Cc . This should not cause a debugger.
You can use Mx rgrep RET debug-on-error RET (or perhaps debug-on-error t ) in your lisp directories and custom lisp directories to help keep track of which library is responding.
How could I repeat your problem, I just did it for myself. For me, the culprit was: (load "nxhtml/autostart.el") . I am updating nxhtml now and I suspect that I will allow this in my case.
Edit: or not.
The current version of nxhtml moved the statement from autoload.el to nxhtml-base.el. If this is the same culprit for you, you can either edit this file or make sure that your variable setting occurs after the autostart nxhtml file is executed.
phils
source share