From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [PATCH] lisp/ob-C.el (org-babel-C-execute): turn on inhibit-lisp eval Date: Wed, 30 Oct 2013 12:06:16 -0600 Message-ID: <87r4b2a9zk.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbacq-0004PL-6n for emacs-orgmode@gnu.org; Wed, 30 Oct 2013 14:36:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vbacl-0008EC-2n for emacs-orgmode@gnu.org; Wed, 30 Oct 2013 14:36:16 -0400 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:45333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vback-0008E2-Sq for emacs-orgmode@gnu.org; Wed, 30 Oct 2013 14:36:11 -0400 Received: by mail-pd0-f171.google.com with SMTP id w10so1341416pde.2 for ; Wed, 30 Oct 2013 11:36:10 -0700 (PDT) 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: Oleh Cc: org mode Applied thanks. Oleh writes: > Hi all, > > Here's a patch to turn this: > > #+begin_src C :results output > puts("[1] 2 3 3"); > #+end_src > > #+RESULTS: > : [1] > > into this: > > #+begin_src C :results output > puts("[1] 2 3 3"); > #+end_src > > #+RESULTS: > : [1] 2 3 > > regards, > Oleh > > From 3cde8ae1316762e106c2229a1661b31de56bc3f9 Mon Sep 17 00:00:00 2001 > From: Oleh Krehel > Date: Wed, 30 Oct 2013 08:50:33 +0100 > Subject: [PATCH] lisp/ob-C.el (org-babel-C-execute): turn on inhibit-lisp eval > > --- > lisp/ob-C.el | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lisp/ob-C.el b/lisp/ob-C.el > index e9eec93..c35b3d0 100644 > --- a/lisp/ob-C.el > +++ b/lisp/ob-C.el > @@ -106,7 +106,7 @@ or `org-babel-execute:C++'." > ((lambda (results) > (org-babel-reassemble-table > (org-babel-result-cond (cdr (assoc :result-params params)) > - (org-babel-read results) > + (org-babel-read results t) > (let ((tmp-file (org-babel-temp-file "c-"))) > (with-temp-file tmp-file (insert results)) > (org-babel-import-elisp-from-file tmp-file))) -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D