From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: orgmode <emacs-orgmode@gnu.org>
Subject: Re: babel question: how to detect the REPL has finished replying
Date: Mon, 15 Feb 2016 14:01:44 +0100 [thread overview]
Message-ID: <m2oabicekn.fsf@polytechnique.org> (raw)
In-Reply-To: <87mvr7ow9i.fsf@gmail.com> (Aaron Ecay's message of "Thu, 11 Feb 2016 19:57:29 +0000")
[-- Attachment #1: Type: text/plain, Size: 865 bytes --]
Hello Aaron,
On 2016-02-11 20:57, Aaron Ecay <aaronecay@gmail.com> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
prev parent reply other threads:[~2016-02-15 13:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-11 15:02 babel question: how to detect the REPL has finished replying Alan Schmitt
2016-02-11 19:57 ` Aaron Ecay
2016-02-15 13:01 ` Alan Schmitt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2oabicekn.fsf@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).