summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2019-01-19 17:27:20 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2019-01-19 17:27:20 +0100
commit372e03372495e1d9cd5a9f2eb1d333e8a9edc787 (patch)
tree1205ad5784098467f0f6a31d86d8634c09715382
parentb70cb5b7d0f1e39057e6a3041eaf1dc081846aae (diff)
downloadorg-mode-372e03372495e1d9cd5a9f2eb1d333e8a9edc787.tar.gz
ob-exp: Fix "strip-export" noweb value
* lisp/ob-exp.el (org-babel-exp-results): Use :eval instead of :export since the function is used to evaluate a source block before exporting it. Reported-by: Alexandre Duret-Lutz <adl@lrde.epita.fr> <http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00226.html>
-rw-r--r--lisp/ob-exp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
index f633912..1a4c494 100644
--- a/lisp/ob-exp.el
+++ b/lisp/ob-exp.el
@@ -376,7 +376,7 @@ block will be evaluated. Optional argument SILENT can be used to
inhibit insertion of results into the buffer."
(unless (and hash (equal hash (org-babel-current-result-hash)))
(let ((lang (nth 0 info))
- (body (if (org-babel-noweb-p (nth 2 info) :export)
+ (body (if (org-babel-noweb-p (nth 2 info) :eval)
(org-babel-expand-noweb-references
info org-babel-exp-reference-buffer)
(nth 1 info)))