emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christopher Allan Webber <cwebber@dustycloud.org>
To: Emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [PATCH] Respect org-export-babel-evaluate on export
Date: Sun, 02 Jun 2013 11:21:05 -0500	[thread overview]
Message-ID: <87txlgxz4e.fsf@earlgrey.lan> (raw)

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: respect_babel_settings.patch --]
[-- Type: text/x-diff, Size: 905 bytes --]

From 5f2621aeda0fa1eb1b976ce85bad7006f45921ea Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
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


             reply	other threads:[~2013-06-02 16:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-02 16:21 Christopher Allan Webber [this message]
2013-06-03 14:45 ` [PATCH] Respect org-export-babel-evaluate on export Eric Schulte
2013-06-03 17:04   ` Christopher Allan Webber
2013-06-05 12:27     ` Nicolas Goaziou

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=87txlgxz4e.fsf@earlgrey.lan \
    --to=cwebber@dustycloud.org \
    --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).