Przeglądaj źródła

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>
Nicolas Goaziou 6 lat temu
rodzic
commit
372e033724
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lisp/ob-exp.el

+ 1 - 1
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."
 inhibit insertion of results into the buffer."
   (unless (and hash (equal hash (org-babel-current-result-hash)))
   (unless (and hash (equal hash (org-babel-current-result-hash)))
     (let ((lang (nth 0 info))
     (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
 		    (org-babel-expand-noweb-references
 		     info org-babel-exp-reference-buffer)
 		     info org-babel-exp-reference-buffer)
 		  (nth 1 info)))
 		  (nth 1 info)))