Error handling in TeXmacs

I’m trying to understand how errors are handled in TeXmacs.

If I do Debug -> Miscellaneous -> Provoke C++ error then I get a pop-up saying there was an error. This menu item simply calls (cpp-error) in Scheme, which does FAILED ("an error occurred") in C++.

If I call (cpp-error) in a Scheme session, then the editor hangs.

Does anyone know what causes the difference?

I think because the session-handling code does not expect this. I would consider this a bug.

1 Like