My intention is to have an REPL of TeXmacs scheme outside of the session system currently implemented. While the session scheme is great in learning TeXmacs, I find it a bit hard to test out my code for navigating and editing TeXmacs document, due to the output of the evaluation being dumped back onto the current document. For instance, if I want to learn how “(traverse-right)” work in the editor, and I use the Scheme session, it doesn’t help me when I evaluate the expression, since it moves to the next prompt.
My proposed use case of such REPL is to have it open along side TeXmacs, which can have a document open. Let’s say I finish writing my code, I can send the expression into the REPL and see the document changes in real time. Evaluating “(buffer-tree)” just gets a copy of the document, it doesn’t help me understand the underlying structure of a certain document.
It seems easy to implement, but I have spent some time with no luck. One notable attempt is to implement a REPL in init-texmacs.scm. While I can evaluate some expressions, it blocks the program from completely loading.
So just pop in here and see if anyone has some good ideas/pointers for me.