emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Oleh <ohwoeowho@gmail.com>
Cc: org mode <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <87r4b2a9zk.fsf@gmail.com> (raw)
In-Reply-To: CAA01p3pmpnGW9cKXHNoreujcrwLkvgfCcaTd3ThydE7HGd=dwA@mail.gmail.com

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

      reply	other threads:[~2013-10-30 18:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=87r4b2a9zk.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ohwoeowho@gmail.com \
    /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).