0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 22:07:49 +00:00

ox-latex: tiny refactoring.

* lisp/ox-latex.el (org-latex--insert-compiler): Refactor.
This commit is contained in:
Aaron Ecay 2016-09-26 15:29:39 +01:00
parent 9bbd9e5ae2
commit 79dab621f9

View file

@ -1610,7 +1610,7 @@ INFO is a plist used as a communication channel."
INFO is a plist used as a communication channel."
(let ((compiler (plist-get info :latex-compiler)))
(and (org-string-nw-p org-latex-compiler-file-string)
(string-match-p (regexp-opt org-latex-compilers) (or compiler ""))
(member (or compiler "") org-latex-compilers)
(format org-latex-compiler-file-string compiler))))