[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] lisp/ob-C.el (org-babel-C-execute): turn on inhibit-lisp
From: |
Eric Schulte |
Subject: |
Re: [O] [PATCH] lisp/ob-C.el (org-babel-C-execute): turn on inhibit-lisp eval |
Date: |
Wed, 30 Oct 2013 12:06:16 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Applied thanks.
Oleh <address@hidden> 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 <address@hidden>
> 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