Re: [O] babel question: how to detect the REPL has finished replying

2016-02-15 Thread Alan Schmitt
Hello Aaron, On 2016-02-11 20:57, Aaron Ecay writes: > Hi Alan, > > Other backends send an unlikely string literal to the interpreter as the > last command, which will be echoed back verbatim. The code detects the > presence of this string in the output stream, and thus

[O] babel question: how to detect the REPL has finished replying

2016-02-11 Thread Alan Schmitt
Hello, I’m tweaking ob-coq and I’m trying to make it more robust. I have a question about the way the code detects that the toplevel has finished replying. Here is the current code (the function name has changed, but the code is the same): #+begin_src emacs-lisp (defun

Re: [O] babel question: how to detect the REPL has finished replying

2016-02-11 Thread Aaron Ecay
Hi Alan, Other backends send an unlikely string literal to the interpreter as the last command, which will be echoed back verbatim. The code detects the presence of this string in the output stream, and thus knows that the interaction has finished. Check out the ‘org-babel-comint-with-output’