emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aaron Ecay <aaronecay@gmail.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: babel question: how to detect the REPL has finished replying
Date: Thu, 11 Feb 2016 19:57:29 +0000	[thread overview]
Message-ID: <87mvr7ow9i.fsf@gmail.com> (raw)
In-Reply-To: <m2k2mbs31d.fsf@charm-ecran.irisa.fr>

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,

-- 
Aaron Ecay

  reply	other threads:[~2016-02-11 19:57 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 [this message]
2016-02-15 13:01   ` Alan Schmitt

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=87mvr7ow9i.fsf@gmail.com \
    --to=aaronecay@gmail.com \
    --cc=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).