瀏覽代碼

ox-latex: tiny refactoring.

* lisp/ox-latex.el (org-latex--insert-compiler): Refactor.
Aaron Ecay 8 年之前
父節點
當前提交
79dab621f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/ox-latex.el

+ 1 - 1
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."
 INFO is a plist used as a communication channel."
   (let ((compiler (plist-get info :latex-compiler)))
   (let ((compiler (plist-get info :latex-compiler)))
        (and (org-string-nw-p org-latex-compiler-file-string)
        (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))))
 	    (format org-latex-compiler-file-string compiler))))