From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [PATCH] org babel execution and new exporter Date: Thu, 14 Feb 2013 10:37:04 -0700 Message-ID: <87obfmlrun.fsf@gmail.com> References: <87sj4yizlq.fsf@univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U62kV-0005Rx-Oc for emacs-orgmode@gnu.org; Thu, 14 Feb 2013 12:37:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U62kP-0005F2-E8 for emacs-orgmode@gnu.org; Thu, 14 Feb 2013 12:37:31 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:50221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U62kP-0005ES-8N for emacs-orgmode@gnu.org; Thu, 14 Feb 2013 12:37:25 -0500 Received: by mail-pa0-f47.google.com with SMTP id bj3so1416455pad.34 for ; Thu, 14 Feb 2013 09:37:24 -0800 (PST) In-Reply-To: <87sj4yizlq.fsf@univie.ac.at> (Gregor Kappler's message of "Thu, 14 Feb 2013 18:17:53 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Gregor Kappler Cc: emacs-orgmode@gnu.org Hi Gregor, This patch looks good to me, but I'll leave the actual application of anything dealing with the new export engine to Nicolas. Thanks for contributing! Gregor Kappler writes: > Hi, > > the new exporter currently does not respect > org-export-babel-evaluate' and evaluates babel src blocks always on > export. I did the tiniest change to ox.el as in the attached patch. > (This is my first patch sent - I hope it works and helps...). > > Best regards, Gregor > > > From a955c54f3ecda02b70933f6b98b8043a4f40d634 Mon Sep 17 00:00:00 2001 > From: Gregor Kappler > Date: Thu, 14 Feb 2013 18:12:39 +0100 > Subject: [PATCH] Export: Prevent babel src blocks from being evaluated > if org-export-babel-evaluate is nil > > * lisp/ox.el (org-export-as): Make sure org-export-babel-evaluate is not nil before calling `org-export-execute-babel-code'. > > TINYCHANGE > --- > lisp/ox.el | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/lisp/ox.el b/lisp/ox.el > index 049dcc5..1ce900b 100644 > --- a/lisp/ox.el > +++ b/lisp/ox.el > @@ -2810,7 +2810,10 @@ Return code as a string." > ;; added some new ones. > (org-macro-initialize-templates) > (org-macro-replace-all org-macro-templates) > - (org-export-execute-babel-code) > + > + (when org-export-babel-evaluate > + (org-export-execute-babel-code)) > + > ;; Update radio targets since keyword inclusion might have > ;; added some more. > (org-update-radio-target-regexp) > -- > 1.7.10.4 -- Eric Schulte http://cs.unm.edu/~eschulte