Parcourir la source

lisp/ox-latex.el: Remove obsolete Babel and Polyglossia alists

* (org-latex--format-spec): The new variable is now `org-latex-language-alist'.
Juan Manuel Macias il y a 3 ans
Parent
commit
d37c0ee5fa
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      lisp/ox-latex.el

+ 5 - 2
lisp/ox-latex.el

@@ -1861,8 +1861,11 @@ INFO is a plist used as a communication channel."
   "Create a format-spec for document meta-data.
 INFO is a plist used as a communication channel."
   (let ((language (let ((lang (plist-get info :language)))
-		    (or (cdr (assoc-string lang org-latex-babel-language-alist t))
-			(nth 1 (assoc-string lang org-latex-polyglossia-language-alist t))
+                    ;; The second element in
+                    ;; `org-latex-language-alist' is always the
+                    ;; language name, regardless of the type of the
+                    ;; alist entry.
+                    (or (nth 1 (assoc-string lang org-latex-language-alist t))
 			lang))))
     `((?a . ,(org-export-data (plist-get info :author) info))
       (?t . ,(org-export-data (plist-get info :title) info))