caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: [Caml-list] ocaml toplevel: is it possible to separate what is sent on stdout from the answers from the toplevel?
Date: Mon, 24 Mar 2014 14:17:56 +0100	[thread overview]
Message-ID: <m2r45rzqez.fsf@polytechnique.org> (raw)

Hello,

I'm looking into extending the OCaml support in org-mode, and to do so
I would like to distinguish what is printed out as replies from the
toplevel from the data printed from the program.

To give a precise example, I would like to split "foo" from "val x : int
= 3" in the following interaction:

--8<---------------cut here---------------start------------->8---
# let x = print_endline "foo"; 3;;
foo
val x : int = 3
--8<---------------cut here---------------end--------------->8---

Is there a way to do it?

Thanks,

Alan

             reply	other threads:[~2014-03-24 13:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-24 13:17 Alan Schmitt [this message]
2014-03-24 14:47 ` Jeremie Dimino
2014-03-29 11:02   ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2r45rzqez.fsf@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --cc=caml-list@inria.fr \
    /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.
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 NNTP newsgroup(s).