Selaa lähdekoodia

ox: Remove code evaluation queries from asynchronous export

* lisp/ox.el (org-export-async-start): Remove code evaluation queries
  from asynchronous export.
Nicolas Goaziou 12 vuotta sitten
vanhempi
commit
69c617c998
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      lisp/ox.el

+ 4 - 2
lisp/ox.el

@@ -5140,9 +5140,11 @@ and
 	     "%S"
 	     `(with-temp-buffer
 		,(when org-export-async-debug '(setq debug-on-error t))
-		;; Ignore `kill-emacs-hook' as we need a truly
+		;; Ignore `kill-emacs-hook' and code evaluation
+		;; queries from Babel as we need a truly
 		;; non-interactive process.
-		(setq kill-emacs-hook nil)
+		(setq kill-emacs-hook nil
+		      org-babel-confirm-evaluate-answer-no t)
 		;; Initialize export framework in external process.
 		(require 'ox)
 		;; Re-create current buffer there.