From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: I need help extending ob-ocaml to support :results output Date: Mon, 24 Mar 2014 13:45:31 +0100 Message-ID: References: <87vbv4gxzl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS4wG-00032m-LD for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 09:29:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS4p2-0001NX-Qm for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 09:23:09 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:36364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS4p2-0001N8-Iw for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 09:21:48 -0400 In-Reply-To: <87vbv4gxzl.fsf@gmail.com> (Eric Schulte's message of "Sun, 23 Mar 2014 19:50:54 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode Eric Schulte 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