branch: externals-release/org
commit c91271297dbbfc831874d7880343603881bdac9c
Author: Rasmus <ras...@gmx.us>
Commit: Nicolas Goaziou <m...@nicolasgoaziou.fr>

    ox-latex: Fix asynchronous export
    
    * lisp/ox-latex.el (org-latex-export-to-pdf): Fix "invalid-read-syntax
    '#'" when exporting asynchronously with ox-latex.
    
    See also previous bug report: 
https://lists.gnu.org/archive/html/emacs-orgmode/2021-06/msg00422.html
---
 lisp/ox-latex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 3e39670..c45dc98 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -3706,7 +3706,7 @@ Return PDF file's name."
   (let ((outfile (org-export-output-file-name ".tex" subtreep)))
     (org-export-to-file 'latex outfile
       async subtreep visible-only body-only ext-plist
-      (lambda (file) (org-latex-compile file)))))
+      #'org-latex-compile)))
 
 (defun org-latex-compile (texfile &optional snippet)
   "Compile a TeX file.

Reply via email to