From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mMMVEZ4K3GJbmwAAbAwnHQ (envelope-from ) for ; Sat, 23 Jul 2022 16:50:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iPYGEZ4K3GK7ZQAA9RJhRA (envelope-from ) for ; Sat, 23 Jul 2022 16:50:06 +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 D65AA385CB for ; Sat, 23 Jul 2022 16:50:05 +0200 (CEST) Received: from localhost ([::1]:38806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFGSD-0008Sy-1R for larch@yhetil.org; Sat, 23 Jul 2022 10:50:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFGRn-0008Sp-VI for emacs-orgmode@gnu.org; Sat, 23 Jul 2022 10:49:39 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:41614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFGRm-0005yZ-8y for emacs-orgmode@gnu.org; Sat, 23 Jul 2022 10:49:39 -0400 Received: by mail-pl1-x630.google.com with SMTP id k16so6801554pls.8 for ; Sat, 23 Jul 2022 07:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=JmbrbArq3KIlJC3tF7PdMNXEicyPcWKKlalJoBbutP0=; b=O9njCNN20MNEbNzkx4S5OlP/JxLe/nKv5APtsmcv7aADnLandJukfx42bN5CgOnXRn n5eJqIpVvyD+W/q8Lt4glA/jI/DS1zA6Om3eqPrq6FtWd69xwXuVXzTdN4rFWIKOr0S8 4dDmcvfDrD+q/rT7TKFaGT0iAv99v4k+ZDLUL6H+3JyG6WBRHRwzdakyavlZTYU+/d5T T/hB4BlCV4IpuHfpiqxB899GeH1DDo3q8HHnnAKpouhqRENuK8zB+mkkgHUfOUTgMGeW 5DN3C1cm7Jwngcio3Jmd3tjp0MYs0ClB4p9g1313Z7U1LUoQLUGCpw3ZPRpPeIOsJhqG /5AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=JmbrbArq3KIlJC3tF7PdMNXEicyPcWKKlalJoBbutP0=; b=Q39ufl/8kf6l+3RmbR0XZVFtmGTQuqABxseVxuXit2vgdhrTofbZGSolKU7hs2jdCf R+LCJKgqkGM3JJSJSFg0fDeGui1ABYcHGH2pgMlNIMtAT6HyvZSqM3W+JKAzS+NuAXwG 7MosX/5E0Uvz1HY8cB2+yvo68cKw1iXhzgph6A0hD2QgNUUxFqxljcPIYAQW41SwMoZA RnELrlErCjaGzLDu2bfaAfKNI2QMhadyuCe3NOg/cEw1kRWk03ZN5kTRHcDwu/Hsd0Gz dPAdw4oxQeI7Jkfhf+tlqbCTz7f/+BKH4ah5sVP0y/RaZsk5ZmZCUvV1EFgwyZdShecP fysA== X-Gm-Message-State: AJIora9KDp/i4b+mesP0XLiUutKiZH6WmGIGQ6mGNO0bMZMCB2IjfbHD +UVTlJpIaDINJJTMmh6FMtA= X-Google-Smtp-Source: AGRyM1tf6pUKqiMp/9W/OzOD55GqtZC+TtMwd1SqW/12A2ubi/AQmAaM9ARx8cJJD03F8rwDk5fNzw== X-Received: by 2002:a17:902:9b97:b0:16d:5fba:57d7 with SMTP id y23-20020a1709029b9700b0016d5fba57d7mr1443048plp.109.1658587776882; Sat, 23 Jul 2022 07:49:36 -0700 (PDT) Received: from localhost ([2409:8a70:2b7:3fb0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id v188-20020a6261c5000000b00528a4238eadsm6214002pfb.13.2022.07.23.07.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 07:49:36 -0700 (PDT) From: Ihor Radchenko To: Kai von Fintel , Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: emacs-orgmode@gnu.org, maciaschain@posteo.net Subject: Re: BUG Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists In-Reply-To: <4F8FB342-420C-4A76-833F-4186E027655B@mit.edu> References: <87pmhw9bfu.fsf@localhost> <87mtczaozb.fsf@localhost> <4F8FB342-420C-4A76-833F-4186E027655B@mit.edu> Date: Sat, 23 Jul 2022 22:50:42 +0800 Message-ID: <87czdvannh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=yantar92@gmail.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1658587805; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JmbrbArq3KIlJC3tF7PdMNXEicyPcWKKlalJoBbutP0=; b=POt1Ld86/zQG+GLyvzTPFoMV5omOQZS5bytIc7MLYW1QP2lMDumOTu9HbpRNHESXT/H/kD Amk34MuVFmhbUmxCRlzQF9cKg1/0UrMqiNVEokzgzWL2ycCk9Vtn9gyUQjGvW1zCR3WNIy fQCQs3ARAjYTWrnsTXFf+2bZa3QlIWjB5oncS42ATWutbtJ8M8AAEmN0/dThZ7xNdKLLZa o3c38dZsEO/onScA90BzkrfIxC8MvbYq1B4dXcXssAipljjjaTnHOMGc/VMl1+uIgPYIKB Risw6HZBj3nkwf0oh56nExF0JZlQS0b652gdm6onf1ZBQgiZZohkoOI+Dx/FYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658587805; a=rsa-sha256; cv=none; b=K5pk6K/x4YuIrDrPZWcv++frKOlIN34LNo8/wmfSm27oWU+XcPDfZLg/+F/fB9jCj3PF1c VNbU7JTqox/BPPJsslybjSiNO7I/5Oo9K4JYBQHQDSNplQu0N4ctXdPfe9vEkaMMbgxRBn T8YHreuDGK2dyHgJVi88sI1WGOpJMMuA+Uvy2mUJEUpSdvjoBblYgDJG5a/EXYvBRSzDnz JVBF+E6WT5NSK2yRSfFhvUeXis2gML+igd72IfQl3gHQ70U3eRtsgIk5nzwqttVQD5md55 TB1UiO0DzSLzh2h/BMI2tQZ9gdBPC6g8PHxOLajhEjtxNUjH+qmLWJPmZNT+VA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=O9njCNN2; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=O9njCNN2; dmarc=pass (policy=none) header.from=gmail.com; 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: D65AA385CB X-Spam-Score: -3.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: gsFvrrwVtx2/ Kai von Fintel writes: >>> (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)))) >>> >>> This borks my latex exports. > ... > Thanks, Ihor. Your change fixed my issue. > > I do think that the code on lines 1864 and 1865 of =3Dox-latex.el=3D (htt= ps://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ox-latex.el#n18= 64) should not use the old variable names. Since you=E2=80=99ve now defined= the old variables in =3Dorg-compat.el=3D, my exports work, so I=E2=80=99m = ok for the moment. But I don=E2=80=99t understand why they are still used i= n the definition of =3Dorg-latex--format-spec=3D. > > But of course I=E2=80=99m far from familiar with the org code base. 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. Best, Ihor