[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] babel question: how to detect the REPL has finished replying
From: |
Alan Schmitt |
Subject: |
Re: [O] babel question: how to detect the REPL has finished replying |
Date: |
Mon, 15 Feb 2016 14:01:44 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
Hello Aaron,
On 2016-02-11 20:57, Aaron Ecay <address@hidden> 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 knows that the
> interaction has finished. Check out the ‘org-babel-comint-with-output’
> macro for the implementation.
>
> (This is the usual function of the org-babel-coq-eoe variable that your
> last patch deleted. It was probably cargo-culted in from another
> backend and never properly implemented.)
>
> Hope this is helpful,
It is, thank you for the suggestion. I’m going to look into how it’s
used in other languages.
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-01, Mauna Loa Obs.): 402.52
signature.asc
Description: PGP signature