branch: externals-release/org
commit cb9a77e26cf2967d2d01db2925e20cead47fdfb1
Author: Pedro A. Aranda <[email protected]>
Commit: Ihor Radchenko <[email protected]>
lisp/ox-latex.el: Add :safe predicate to 3 variables
(org-latex-title-command):
(org-latex-subtitle-format):
(org-latex-subtitle-separate):
Adding the :safe predicate to these variables makes it possible to add
customisations via file or directory-local variables without
triggering extra messages when loading the documents.
---
lisp/ox-latex.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 9d1777c43f..dfae2ac9fd 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -588,6 +588,7 @@ like that: \"%%\".
Setting :latex-title-command in publishing projects will take
precedence over this variable."
:group 'org-export-latex
+ :safe #'stringp
:type '(string :tag "Format string"))
(defcustom org-latex-subtitle-format "\\\\\\medskip\n\\large %s"
@@ -597,6 +598,7 @@ which is replaced with the subtitle."
:group 'org-export-latex
:version "26.1"
:package-version '(Org . "8.3")
+ :safe #'stringp
:type '(string :tag "Format string"))
(defcustom org-latex-subtitle-separate nil
@@ -604,6 +606,7 @@ which is replaced with the subtitle."
:group 'org-export-latex
:version "26.1"
:package-version '(Org . "8.3")
+ :safe #'booleanp
:type 'boolean)
(defcustom org-latex-toc-command "\\tableofcontents\n\n"