branch: externals/org
commit f092f9e869d05191c7d3563ab850a1aed4f34b10
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>
org-latex-make-preamble: Fix Emacs 28 compatibility
* lisp/ox-latex.el (org-latex-make-preamble): Pass third argument to
'mapconcat'. It is mandatory in Emacs 28.
Reported-by: Morgan Smith
---
lisp/ox-latex.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 82828730b4..d134b164f5 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -2033,7 +2033,8 @@ specified in `org-latex-default-packages-alist' or
(if (not class-options) header
(replace-regexp-in-string
"^[
\t]*\\\\documentclass\\(\\(\\[[^]]*\\]\\)?\\)"
- class-options header t nil 1))))))
+ class-options header t nil 1)))
+ nil)))
(user-error "Unknown LaTeX class `%s'" class))))
(org-latex-guess-polyglossia-language
(org-latex-guess-babel-language