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.
This commit is contained in:
Nicolas Goaziou 2012-06-15 17:19:26 +02:00
parent 393f2f5ae8
commit 8840cd6ddc
1 changed files with 3 additions and 1 deletions

View File

@ -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)