emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Oleh <ohwoeowho@gmail.com>
To: org mode <emacs-orgmode@gnu.org>
Subject: [PATCH] lisp/ob-C.el (org-babel-C-execute): turn on inhibit-lisp eval
Date: Wed, 30 Oct 2013 09:15:49 +0100	[thread overview]
Message-ID: <CAA01p3pmpnGW9cKXHNoreujcrwLkvgfCcaTd3ThydE7HGd=dwA@mail.gmail.com> (raw)

[-- 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


             reply	other threads:[~2013-10-30  8:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-30  8:15 Oleh [this message]
2013-10-30 18:06 ` [PATCH] lisp/ob-C.el (org-babel-C-execute): turn on inhibit-lisp eval Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA01p3pmpnGW9cKXHNoreujcrwLkvgfCcaTd3ThydE7HGd=dwA@mail.gmail.com' \
    --to=ohwoeowho@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).