From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: [PATCH] Respect org-export-babel-evaluate on export Date: Sun, 02 Jun 2013 11:21:05 -0500 Message-ID: <87txlgxz4e.fsf@earlgrey.lan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjB1v-0001hq-PE for emacs-orgmode@gnu.org; Sun, 02 Jun 2013 12:21:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjB1s-0005w1-Hy for emacs-orgmode@gnu.org; Sun, 02 Jun 2013 12:21:15 -0400 Received: from li424-160.members.linode.com ([50.116.34.160]:41461 helo=dustycloud.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjB1s-0005vv-Cs for emacs-orgmode@gnu.org; Sun, 02 Jun 2013 12:21:12 -0400 Received: from earlgrey.lan (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id C32952663A for ; Sun, 2 Jun 2013 12:21:10 -0400 (EDT) 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: Emacs-orgmode --=-=-= Content-Type: text/plain Hiya, I was running into troubles where regardless of my setting on org-export-babel-evaluate, it was evaluating babel code anyway. Here's a patch that seems to fix this. For convenience: I've signed the emacs/orgmode papers already. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=respect_babel_settings.patch >From 5f2621aeda0fa1eb1b976ce85bad7006f45921ea Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 2 Jun 2013 11:16:54 -0500 Subject: [PATCH] Respect the "org-export-babel-evaluate" variable while exporting. For some reason, this variable existed, but wasn't being respected on export. --- lisp/ox.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox.el b/lisp/ox.el index 0e32cf3..a1f8058 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -2949,7 +2949,8 @@ 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) + (if 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 --=-=-=--