ox-latex: Improve warning for unexpected org-latex-src-block-backend

* lisp/ox-latex.el (org-latex-inline-src-block):
(org-latex-src-block): Update the warning text, explicitly mentioning
the variable name to be adjusted.

Reported-by: Guillaume MULLER <guillaume.muller@emse.fr>
Link: https://orgmode.org/list/b5c056cb-3258-4a11-2d9b-33c97b112d62@emse.fr
This commit is contained in:
Ihor Radchenko 2023-08-24 10:37:52 +03:00
parent 3c3db7b337
commit 85c94ecfc2
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 2 additions and 2 deletions

View File

@ -2425,7 +2425,7 @@ contextual information."
(`engraved (org-latex-inline-src-block--engraved info code lang))
(`listings (org-latex-inline-src-block--listings info code lang))
(oldval
(warn "Please update the LaTeX src-block-backend to %s"
(warn "Please update `org-latex-src-block-backend' to %s"
(if oldval "listings" "verbatim"))
(if oldval
(org-latex-inline-src-block--listings info code lang)
@ -3321,7 +3321,7 @@ contextual information."
(`listings #'org-latex-src-block--listings)
((guard custom-env) #'org-latex-src-block--custom)
(oldval
(warn "Please update the LaTeX src-block-backend to %s"
(warn "Please update `org-latex-src-block-backend' to %s"
(if oldval "listings" "verbatim"))
(if oldval
#'org-latex-src-block--listings