all messages for Emacs-related lists mirrored at yhetil.org
 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

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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.