emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] I need help extending ob-ocaml to support :results output


From: Alan Schmitt
Subject: Re: [O] I need help extending ob-ocaml to support :results output
Date: Mon, 24 Mar 2014 13:45:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

Eric Schulte <address@hidden> writes:

> You can step through the execution of `org-babel-execute:ocaml' by first
> evaluating the function with a prefix argument (meaning with the cursor
> within the function body press C-u C-A-x) which will edebug [1] the
> function.
>
> You can then evaluate an OCaml code block and when execution hits the
> `org-babel-execute:ocaml' it will pause, and you can step through the
> function by continuously pressing space bar.  In this way you can see
> how the code is executed, and you can interactively look at the OCaml
> session buffer to see where output is printed.  Pay special attention to
> the `org-babel-comint-with-output' function, which is probably where
> you'll need to make changes when the following holds.
>
>   (member "output" (cdr (assoc :result-params params)))
>
> You can also look for the string "output" in other ob-*.el language
> files to see how output results are collected.
>
> Hope this helps,

It does, thanks a lot.

Alan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]