From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 OI4QM8Hx3GJ3wQAAbAwnHQ (envelope-from ) for ; Sun, 24 Jul 2022 09:16:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aB82M8Hx3GKitQAA9RJhRA (envelope-from ) for ; Sun, 24 Jul 2022 09:16:17 +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 6E5E11257D for ; Sun, 24 Jul 2022 09:16:17 +0200 (CEST) Received: from localhost ([::1]:57722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFVqa-0000ND-1e for larch@yhetil.org; Sun, 24 Jul 2022 03:16:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFVoY-0000N2-Ox for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 03:14:11 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:43573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFVoX-0007Fo-0L for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 03:14:10 -0400 Received: by mail-pf1-x42a.google.com with SMTP id b9so7799885pfp.10 for ; Sun, 24 Jul 2022 00:14:08 -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=92p9jV1s+Th5FLY+2zj517VuyfnZIe9Qhf0mc7iQrRA=; b=OzRd0nZQyWD5vOze48Gmqpw8BIvec8kIS+8RFoi32rhnolKPgIEQ/FoqJUaQhqRiMz dyF30SkLBuo+uIDtizXTX290nbQym0lyey3H/rV2h8ixu7ySQuchRJZ62PVL6iow58f1 01YZB6ulFMFG5sEG4KlaCFI4f+4yaayWrQUBGLeihIgVEC0rsI5itgaaLf4P8itUMPgC fNBvw2H+zKE0dEW2j/tWfyTkOEnSIISJI60yFyfy5YevBYtLvc695m6C5kmu4GOudHDv ZdCwdqrUT/5KGG+/Wmpe9/g9GBbJ2qHbE9dvokVOaQg+Pq/Bn1kwicpdzW4Zr0mvRYfz beIw== 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=92p9jV1s+Th5FLY+2zj517VuyfnZIe9Qhf0mc7iQrRA=; b=XnrajCbWtQmGmYWEtBzbZP6m+hPxxmGJyJumFCo3XkN3ezz+t6OLxiOQVzPh3vTAoC jts63Mp3LhW+WdAbKYlezb+3L0Rn8UAsKEdHOJpQkfihOALILp2LV1FpCaJEXCEtHZMb x765/lhZ2M6V0hLal8464t7IYyyUUezqbVp8Fd0XeGpej5ATUz2aO7676AszUoNKdPdL Eb8VKzqzbUDYh5xyEBTc9fotYb/rAJ9c3CjVk3SXTVvdzzsi/otrdn0NAIV1oXo3dN3x w42N7HXPs5V6XNPJXBwGVnUUoTdZm1orzONXgg4WGsIh4g1DBrNhNR8nuKJ6hlGmMLXI TIZQ== X-Gm-Message-State: AJIora8SG4Du99XgZaCyWLZ7Jai752AFcRl/X4BWwwwAZVtp9ZgJ6eek EjxNiyKcuRoZzU9x4OZgG+E= X-Google-Smtp-Source: AGRyM1tGHq2COlSffBQMLd4TxyzffA2NZM4xwZC+lmcQGylghsUwwmTSXDCtSV+pVvlRPvXQORUPCA== X-Received: by 2002:a05:6a00:158d:b0:52b:18a4:c73a with SMTP id u13-20020a056a00158d00b0052b18a4c73amr7429957pfk.51.1658646847327; Sun, 24 Jul 2022 00:14:07 -0700 (PDT) Received: from localhost ([1.83.155.1]) by smtp.gmail.com with ESMTPSA id p64-20020a625b43000000b00528c4c735besm6983336pfb.39.2022.07.24.00.14.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 00:14:06 -0700 (PDT) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: Kai von Fintel , orgmode Subject: Re: BUG Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists In-Reply-To: <87sfmrq0z2.fsf@posteo.net> References: <87pmhw9bfu.fsf@localhost> <87mtczaozb.fsf@localhost> <4F8FB342-420C-4A76-833F-4186E027655B@mit.edu> <87czdvannh.fsf@localhost> <87sfmrq0z2.fsf@posteo.net> Date: Sun, 24 Jul 2022 15:15:10 +0800 Message-ID: <87a68zdls1.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::42a; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42a.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=1658646977; 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=92p9jV1s+Th5FLY+2zj517VuyfnZIe9Qhf0mc7iQrRA=; b=JnB92pHucCwykbiIht9CEDZdV7hd0P2zU7eFwK2wTQ2p3PnDJKpCS8M1kw8I/4Ui8XsKLA vQ4DgZrj4h5DkTZPAY0GmKk8S8Oy3Q6wVgVj/WFnAapr6HB0XZdYSxMgeN6Gqhelgq3fxL uphpw9tg1jQcKL9vrdAfWJcCNzdff692QGA9gQmj/3dWZYRwdpgbotifpkVbJSpLuU6db/ UvHB/ycaJSKrZe511om56YLCwqZZ0R7K4Mn0MMiZFFgItRekacXDswqOGHVBEwZgKl+7+Q HdJC/ccJYignu66IDZ9K4Vy+cncGX7yxFBGD/WoIGrBzOa9gmHpSfNw7b049UQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658646977; a=rsa-sha256; cv=none; b=ixVLDr72bYCfUDD7ZIeppoUgRjFk7xeG7XqfVk1gutjflBfrybuxXG1vnK4r2yavJotHcK 2JrVVICVyVncjk7spA67Md3jBeJRg1R7WM6R4WnGfiTNBQ3T8aey4XwA56ZqrFlmbjZvlp 0VpeFkMCpbC44198Ckbm+nijGiQJuc6C4uFqhskh7ZtrCkqd6BXj93Ru7dSu75cxFTmIuh dYzVrErITgfN3orGg8P8tKicoEZZLCwyASZtnCO43N34G+kE+SAaKZMb6VWfj+LxZoMI/I f8/GYGnmkk4vrWm6aN7TiJr2S6Mu6EMEev9i975iFp965OQra5yeCJaTQPVXqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OzRd0nZQ; 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.73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OzRd0nZQ; 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: 6E5E11257D X-Spam-Score: -3.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3fjfzk0hsqrV Juan Manuel Mac=C3=ADas 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. Thanks! > + (let ((language (let* ((lang (plist-get info :language)) > + (l (assoc lang org-latex-language-alist))) > + (cond ((and (consp l) (=3D (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= ))))))) Can you please add the comments, similar to what I requested earlier. These magic length of 4 may be hard to grasp otherwise. Best, Ihor