branch: externals/org
commit d28b7efe0e728d4a64684e0103f18500e22111ec
Author: Pedro A. Aranda <[email protected]>
Commit: Ihor Radchenko <[email protected]>
lisp/ox-latex.el: Set :safe predicate for `org-latex-compiler'
* lisp/ox-latex.el (org-latex-compiler): Set :safe predicate according
to its :type definition.
---
lisp/ox-latex.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index e49af206e7..0bb30915a1 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1427,7 +1427,12 @@ Can also be set in buffers via #+LATEX_COMPILER. See
also
(const :tag "LuaLaTeX" "lualatex")
(const :tag "Unset" ""))
:version "26.1"
- :package-version '(Org . "9.0"))
+ :package-version '(Org . "9.0")
+ :safe (lambda (s)
+ (and (stringp s) ; must be a string
+ ;; either an empty string or one of the supported compilers
+ (or (length= s 0)
+ (member s org-latex-compilers)))))
(defconst org-latex-compilers '("pdflatex" "xelatex" "lualatex")
"Known LaTeX compilers.