Very occasionally I find that my Emacs environment gets into a state
when most operations I try to do result in a "Lisp nesting exceeds
max-lisp-eval-depth" error. I've no idea what triggers this
condition, and killing the Emacs process (for 'save-buffers-kill-emacs'
is one of the operations which no longer work) and restarting Emacs
usually fixes the problem for a month or so.
However, I would like to get to the bottom of it and find out what is going wrong.
I have tried setting "debug-on-error" to t, but the debugger doesn't
get triggered. I also set debug-ignored-errors and
debug-on-signal, but nothing seems to trigger the debugger. Maybe
what's happening is that the debugger is also causing the
'max-lisp-eval-depth' error. Or maybe, since I'm already at the
maximum eval depth, there's no room to call '(debug)'.
Anyway - my question is - how might I go about debugging this?