From 79dab621f98c30c94c4b373dada6be274c85cff0 Mon Sep 17 00:00:00 2001 From: Aaron Ecay Date: Mon, 26 Sep 2016 15:29:39 +0100 Subject: [PATCH] ox-latex: tiny refactoring. * lisp/ox-latex.el (org-latex--insert-compiler): Refactor. --- lisp/ox-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 54c5d031d..592aace39 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -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)))) -- 2.11.4.GIT