eschulte/rinari

Variable binding depth exceeds max-specdpl-size

dgutov opened this issue · 6 comments

To reproduce, just evaluate: (browse-url-emacs "http://google.com")

It causes post-command-hook to start failing in global-rinari-mode-check-buffers every time I try to M-x or M-:.
Not sure what's the exact problem, maybe you just need to ignore the special and hidden buffers.

Odd. That's the first time I've seen it. There's no obvious problem in the macroexpanded code, and I can't figure out how to get a useful traceback... sigh.

Just spent ages looking into this and haven't managed to figure it out. It doesn't help that the debugger can't be entered from within post-command-hook.

Eh, found it. Disable global-rinari-mode, evaluate the browse expression, and in the new buffer evaluate (rinari-root). It loops on "http:/".

Ah, well spotted! My brain's not working well enough today to figure out the best fix, but it helps a lot to know where to look. :-)

file-directory-p handles tramp paths etc. nicely, so I've used that to safeguard the code.

Works fine, thanks!