emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] lisp/ob-C.el (org-babel-C-execute): turn on inhibit-lisp eval
@ 2013-10-30  8:15 Oleh
  2013-10-30 18:06 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Oleh @ 2013-10-30  8:15 UTC (permalink / raw)
  To: org mode

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

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

[-- Attachment #2: 0001-lisp-ob-C.el-org-babel-C-execute-turn-on-inhibit-lis.patch --]
[-- Type: text/x-patch, Size: 802 bytes --]

From 3cde8ae1316762e106c2229a1661b31de56bc3f9 Mon Sep 17 00:00:00 2001
From: Oleh Krehel <ohwoeowho@gmail.com>
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)))
-- 
1.8.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] lisp/ob-C.el (org-babel-C-execute): turn on inhibit-lisp eval
  2013-10-30  8:15 [PATCH] lisp/ob-C.el (org-babel-C-execute): turn on inhibit-lisp eval Oleh
@ 2013-10-30 18:06 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2013-10-30 18:06 UTC (permalink / raw)
  To: Oleh; +Cc: org mode

Applied thanks.

Oleh <ohwoeowho@gmail.com> 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 <ohwoeowho@gmail.com>
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-30 18:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-30  8:15 [PATCH] lisp/ob-C.el (org-babel-C-execute): turn on inhibit-lisp eval Oleh
2013-10-30 18:06 ` Eric Schulte

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).