Hi there, When I try to export documents asynchronously with ox-latex, I always get a bug in the “org-export-processFOO” files. The last sexp is always something like this:
(funcall '#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_83> "test.tex") where the “#” and “’” are mixed around. This happens even with a very simple ‘org-export-async-init-file’ just loading ELPA Org. This was previously reported here: https://lists.gnu.org/archive/html/emacs-orgmode/2021-06/msg00422.html Nicolas’ fix (replicated in this patch) seems to fix it. I don’t really understand why this bug happens to be honest. This happens both on my GNU/Linux system (Emacs v29) and my work Windows PC (Emacs v28 or v29) [all pre-releases, obviously]. Thanks, Rasmus -- If you can mix business and politics wonderful things can happen!
>From be15ab50ef4cefc579f87766b21eaed7514379d1 Mon Sep 17 00:00:00 2001 From: Rasmus Pank Roulund <x...@pank.eu> Date: Sun, 28 Nov 2021 16:34:37 +0100 Subject: [PATCH] org-latex-export-to-pdf: Avoid using lambda function. 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 409d92164..8187119ec 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -3708,7 +3708,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. -- 2.34.1