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: Sat, 29 Mar 2014 19:52:09 +0100 Message-ID: References: <87vbv4gxzl.fsf@gmail.com> <87txahp0e1.fsf@gmail.com> <87k3bcq20v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTyMg-0000Qg-1k for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 14:52:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTyMZ-0006ba-WA for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 14:52:21 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:43545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTyMZ-0006bU-PI for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 14:52:15 -0400 In-Reply-To: <87k3bcq20v.fsf@gmail.com> (Nicolas Goaziou's message of "Sat, 29 Mar 2014 19:43:12 +0100") 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: Nicolas Goaziou Cc: emacs-orgmode , Eric Schulte Nicolas Goaziou writes: > Alan Schmitt writes: > > + (mapcar #'org-babel-trim (reverse raw))))))) > + (raw (org-babel-trim clean)) > + (result-params (cdr (assoc :result-params params))) > + (parsed > + (string-match > + "\\(\\(.*\n\\)*\\)[^:\n]+ : \\([^=\n]+\\) =\\(\n\\| \\)\\(.+\\)$" > + raw)) > + (output (match-string 1 raw)) > + (type (match-string 3 raw)) > + (value (match-string 5 raw)) > + ) > > ^ > Here. OK, I put it on the previous line. I'll commit now. Thanks, Alan