From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wP70APsZ3GKgcQAAbAwnHQ (envelope-from ) for ; Sat, 23 Jul 2022 17:55:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iGhvO/oZ3GKUcAEAG6o9tA (envelope-from ) for ; Sat, 23 Jul 2022 17:55:38 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 55B4044A61 for ; Sat, 23 Jul 2022 17:55:38 +0200 (CEST) Received: from localhost ([::1]:43492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFHTd-0000XQ-Ea for larch@yhetil.org; Sat, 23 Jul 2022 11:55:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFHS7-0000SP-8e for emacs-orgmode@gnu.org; Sat, 23 Jul 2022 11:54:04 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37559) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFHS5-0003zR-4S for emacs-orgmode@gnu.org; Sat, 23 Jul 2022 11:54:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D21B1240027 for ; Sat, 23 Jul 2022 17:53:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1658591638; bh=er7mp4ipgMXywnTx6BBo6YXQIkW1X8Han6+Nu6pz0HI=; h=From:To:Cc:Subject:Date:From; b=QDW5lEPNbxUbSedg64ZN2Y9FRL/vfx4HnrHBH4mz2bL2Y9/ckJoJy4cEOkIXPMFjE H2n83dKUuRKcXRTyHBMNYz7EzaZ+rHaPO3PgZcsqjKkdiWlLGDVCOitu1orFAqDcl7 YiTxVkysHqEjZKuccrrgInkP3cxS9vLBptoxtQzQQDrRrfBaFyq13IVJzEY92IDiN5 B0vA34uSHmeZRh1EpFUctS+I6C9RF7P5n2OWDlMM+5wPcFb/Rsc+FrrfzkytLt9xEa e9pPgItIekD36IAKA7n58kjWcVx50JC9WAR81U3K00ZEA2Oh+eGVcG94okcEizdSyH TPYJEqlF49gfg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LqrSz4Tswz6tmB; Sat, 23 Jul 2022 17:53:55 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: Kai von Fintel , orgmode Subject: Re: BUG Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists References: <87pmhw9bfu.fsf@localhost> <87mtczaozb.fsf@localhost> <4F8FB342-420C-4A76-833F-4186E027655B@mit.edu> <87czdvannh.fsf@localhost> Date: Sat, 23 Jul 2022 15:53:53 +0000 In-Reply-To: <87czdvannh.fsf@localhost> (Ihor Radchenko's message of "Sat, 23 Jul 2022 22:50:42 +0800") Message-ID: <87sfmrq0z2.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658591738; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iy0yoLAyCQ5Kqobq1WNFv8H2F+QEWNEdKqvzPu4h24c=; b=Xp3kA9LmcnR1R0ghit/gfsdT0v5HIpbXkhJV7REmYEHNeMrI9TzrafXK8fZPovH+aaI3jM 6oSQCsEvikiqUOXqfM1PTCj3+5fZMwVNZfblrpt+YzVmmvGSH6I8mdDI9fcwYD2S9YsZEJ BVO2iH5uAHjU7sq+CoyWc/40ZCXqoI7g8SEm+Mu9lw8o6gsdeRm2QmhvX72O3FTZjx7W22 2pT/rrb787O3itN0rEjmBVUoZ14MlUJuOTcS6yW9B4BuQT1UO6lstQHRD+7zwc1YfNFWM1 ReM7iIYPpm0u6dOOXDTq5bfPOJp8ZdXApyitLYpHJz9xj6lc0dKlGxTokfsRzw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658591738; a=rsa-sha256; cv=none; b=J8IxX4wfdkstKOwKBsLcyyEWygjgGvLrslmc5B11/U9NeJA3NZnUnqINEI8eXDa6EXH8QM t0uy5fjRtYD1EOBc3eYfyZo+ybsIHsyIGu2beq86Gi+ijXNi662kf2+UEmm2ZI6VqqfPp+ lPqqs7Ikejty4C4k1WYN/vFzMHihjHeA6wB77T+nmtlx9WIM/Oc3/AthaZEETgDqhpZBdK /8tM6gn8MGce+8u4rqce2wxniVHXVyyIx/gkZpW37eX00B1vtPIEjz4AzvBEjD8jdOOq2w BYumVDkToAkrx/mwaRo3kS/+XEEYKT6jjBUtXy+d2gHHhb1XVirIhKgFbkpDCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QDW5lEPN; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QDW5lEPN; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 55B4044A61 X-Spam-Score: -4.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: xbaWRijDOPvE --=-=-= Content-Type: text/plain Hi Ihor and Kai, Ihor Radchenko writes: > Hmm. You are actually right. > Juan, can you please take a look. It looks like you missed > "org-latex--format-spec" in the patch. It should use the new > org-latex-language-alist variable instead. Attached a new patch to fix (I hope) the org-latex-language-alist issue in org-latex--format-spec. Best regards, Juan Manuel --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-ox-latex.el-Fix-obsolete-variables-for-babel-an.patch >From 95ce88336f6d2106968250379767ce2fe690fe2c Mon Sep 17 00:00:00 2001 From: Juan Manuel Macias Date: Sat, 23 Jul 2022 17:42:50 +0200 Subject: [PATCH] lisp/ox-latex.el: Fix obsolete variables for babel and polyglossia * (org-latex--format-spec): Use the new variable `org-latex-language-alist' --- lisp/ox-latex.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 6cd751409..ee059d5ce 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1860,10 +1860,12 @@ INFO is a plist used as a communication channel." (defun org-latex--format-spec (info) "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)) - lang)))) + (let ((language (let* ((lang (plist-get info :language)) + (l (assoc lang org-latex-language-alist))) + (cond ((and (consp l) (= (length l) 4)) + (nth 2 (assoc-string lang org-latex-language-alist t))) + ((and (consp l) (< (length l) 4)) + (nth 1 (assoc-string lang org-latex-language-alist t))))))) `((?a . ,(org-export-data (plist-get info :author) info)) (?t . ,(org-export-data (plist-get info :title) info)) (?s . ,(org-export-data (plist-get info :subtitle) info)) -- 2.37.1 --=-=-=--