mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-05 20:13:25 +00:00
ox-latex: Prefer :latex-src-block-backend INFO property over variable
* lisp/ox-beamer.el (org-beamer-template): * lisp/ox-latex.el (org-latex-template): Reuse INFO plist to retrieve src backend. Direct usage can break user settings where INFO channel is expected to be modified and have effect.
This commit is contained in:
parent
91a532b40e
commit
f97877a069
|
@ -873,7 +873,7 @@ holding export options."
|
|||
(and (stringp template)
|
||||
(format-spec template (org-latex--format-spec info))))
|
||||
;; engrave-faces-latex preamble
|
||||
(when (and (eq org-latex-src-block-backend 'engraved)
|
||||
(when (and (eq (plist-get info :latex-src-block-backend) 'engraved)
|
||||
(org-element-map (plist-get info :parse-tree)
|
||||
'(src-block inline-src-block) #'identity
|
||||
info t))
|
||||
|
|
|
@ -2031,7 +2031,7 @@ holding export options."
|
|||
(and (stringp template)
|
||||
(format-spec template spec)))
|
||||
;; engrave-faces-latex preamble
|
||||
(when (and (eq org-latex-src-block-backend 'engraved)
|
||||
(when (and (eq (plist-get info :latex-src-block-backend) 'engraved)
|
||||
(org-element-map (plist-get info :parse-tree)
|
||||
'(src-block inline-src-block) #'identity
|
||||
info t))
|
||||
|
|
Loading…
Reference in a new issue