From 85c94ecfc2706d17af45631198aa3bb43531913d Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Thu, 24 Aug 2023 10:37:52 +0300 Subject: [PATCH] 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 Link: https://orgmode.org/list/b5c056cb-3258-4a11-2d9b-33c97b112d62@emse.fr --- lisp/ox-latex.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 52d9ca5fa..bb1bf4982 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -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