From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: I need help extending ob-ocaml to support :results output Date: Fri, 21 Mar 2014 17:35:18 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR2Pq-0005Xg-S3 for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 12:35:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WR2Pj-0003ms-HX for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 12:35:30 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:14439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR2Pj-0003ml-Bw for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 12:35:23 -0400 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: emacs-orgmode Hello, It seems that ob-ocaml does not support ":results output". For instance, evaluating the following block: #+begin_src ocaml :results output Printf.printf "foo\nbar\n";; #+end_src Does not result in the two lines "foo" and "bar" but in the value being returned. Unfortunately I don't know enough of babel and emacs-lisp to extend ob-ocaml to support this. Would someone be willing to guide me through the `org-babel-execute:ocaml' function in ob-ocaml.el so that I can add this functionality? Thanks, Alan