Kaynağa Gözat

org-e-latex: Babel language set through LANGUAGE keyword is loaded last

* contrib/lisp/org-e-latex.el (org-e-latex--guess-babel-language):
  Make sure Babel language set through LANGUAGE keyword is loaded
  last.
Nicolas Goaziou 12 yıl önce
ebeveyn
işleme
8840cd6ddc
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      contrib/lisp/org-e-latex.el

+ 3 - 1
contrib/lisp/org-e-latex.el

@@ -894,7 +894,9 @@ Return the new header."
 	;; If LANGUAGE is already loaded, return header.  Otherwise,
 	;; append LANGUAGE to other options.
 	(if (member language options) header
-	  (replace-match (mapconcat 'identity (cons language options) ",")
+	  (replace-match (mapconcat 'identity
+				    (append options (list language))
+				    ",")
 			 nil nil header 1))))))
 
 (defun org-e-latex--guess-inputenc (header)