Explorar o código

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 %!s(int64=3) %!d(string=hai) anos
pai
achega
d37c0ee5fa
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  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))