Skip to content

Commit d37c0ee

Browse files
Juan Manuel Maciasyantar92
authored andcommitted
lisp/ox-latex.el: Remove obsolete Babel and Polyglossia alists
* (org-latex--format-spec): The new variable is now `org-latex-language-alist'.
1 parent bc875e5 commit d37c0ee

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lisp/ox-latex.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,8 +1861,11 @@ INFO is a plist used as a communication channel."
18611861
"Create a format-spec for document meta-data.
18621862
INFO is a plist used as a communication channel."
18631863
(let ((language (let ((lang (plist-get info :language)))
1864-
(or (cdr (assoc-string lang org-latex-babel-language-alist t))
1865-
(nth 1 (assoc-string lang org-latex-polyglossia-language-alist t))
1864+
;; The second element in
1865+
;; `org-latex-language-alist' is always the
1866+
;; language name, regardless of the type of the
1867+
;; alist entry.
1868+
(or (nth 1 (assoc-string lang org-latex-language-alist t))
18661869
lang))))
18671870
`((?a . ,(org-export-data (plist-get info :author) info))
18681871
(?t . ,(org-export-data (plist-get info :title) info))

0 commit comments

Comments
 (0)