From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 WCWHBWgI3GKUngAAbAwnHQ (envelope-from ) for ; Sat, 23 Jul 2022 16:40:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0HhhBWgI3GIjgwAAauVa8A (envelope-from ) for ; Sat, 23 Jul 2022 16:40:40 +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 A96BD433D3 for ; Sat, 23 Jul 2022 16:40:39 +0200 (CEST) Received: from localhost ([::1]:60216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFGJ4-0003R9-SJ for larch@yhetil.org; Sat, 23 Jul 2022 10:40:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFGID-0003OO-4d for emacs-orgmode@gnu.org; Sat, 23 Jul 2022 10:39:45 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:51916 helo=outgoing.mit.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFGIA-0004Rc-VE for emacs-orgmode@gnu.org; Sat, 23 Jul 2022 10:39:44 -0400 Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com [66.111.4.227]) (authenticated bits=0) (User authenticated as fintel@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 26NEdc72013146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 23 Jul 2022 10:39:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1658587180; bh=JJH2bNLEPSd6lTrGHW9Q9AzLwdaNt1hErindS5vns84=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lCRvKszP/lBL5ZWj6sdzx1DbvjLk79EL4J7wWCjX+dgPXJQkLywlzbjNZlBV8nnwk /GKXhj6UV0vdYKA0EaYOEy8h7L+woK5U8K9BM/dHzyUcN654RhMp0cvw91Yz+fqu/W vqfi6TEepK0WdyEXkK6td7oe6Nk1ytuAotWpTW8NLIKURfONVqguzQToQIyCX36TPM zT9+usReTTz71o9SEaGgN8tQmhSQG81ULvqFKcYSuJsCre4j7ap85DcI154yb34Ejf nXUxTnZNxaXgaHB37EzbnI/CtzXeIFHkPV7uOm9NOFnNI5u5IN/4G9C7Y3WnLRBV7j KqGvt3u5aZj7w== Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 045C227C0054; Sat, 23 Jul 2022 10:39:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 23 Jul 2022 10:39:38 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddtgedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffoffkjghfgggtgfesth hqmhdtredtjeenucfhrhhomhepmfgrihcuvhhonhcuhfhinhhtvghluceofhhinhhtvghl sehmihhtrdgvughuqeenucggtffrrghtthgvrhhnpeeihfdtvdfgvdefueeiheduteeltd egleeihedvtddvkeelheelgfeivdegueduieenucffohhmrghinhepghhnuhdrohhrghen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehfihhnth gvlhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqvddtjeejfeekieehqdej udeileeiqdhfihhnthgvlheppehmihhtrdgvughusehmrghilhifohhrkhhsrdhorhhg X-ME-Proxy: Feedback-ID: ice304092:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 Jul 2022 10:39:36 -0400 (EDT) From: Kai von Fintel To: Ihor Radchenko 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 Date: Sat, 23 Jul 2022 17:39:34 +0300 X-Mailer: MailMate (1.14r5852) Message-ID: <4F8FB342-420C-4A76-833F-4186E027655B@mit.edu> In-Reply-To: <87mtczaozb.fsf@localhost> References: <87pmhw9bfu.fsf@localhost> <87mtczaozb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=18.9.28.11; envelope-from=fintel@mit.edu; helo=outgoing.mit.edu 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=1658587239; 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=JJH2bNLEPSd6lTrGHW9Q9AzLwdaNt1hErindS5vns84=; b=akAJ05ozJbr1R/jag88xXxRHVbcTjpbXQ67l/1guu6cJ0ccTRTwP3E+BDxLt7y9V87xf2+ lFIjnhXXBwhc0/21tKOYEDT2OHhNvqBkak2HC3Qlsk6EKQQ0DH8q8A/rPXJ9tQkr/6Jj1b GflzTOY9zfoU2rns02ZlQ+Vpm1SHRA0QFhsFn1Nq2uteqk04m01kzazopZlkaowaVBSzdx VKklwDuzD54bx9esq+ulp+xRkwlJNnCX9e7YGYAHzBCWSSYZLvP5tbg8pLLx6wpzfRFUjy fSi/FJxvYDppceWLm/XkWq7vAmGA2RqtVm6JR7Sk5hXWzZDeRAmGQ/A90sZFFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658587239; a=rsa-sha256; cv=none; b=i9BLrYci3xiuus1tdAcMnwckJKYD4p7x3orpvOobClMorep3YLGUtYK7ibmW7jkkvXLbIX XA2S+dls4TwpTVL/AWNpeBIzuPvAfiC7wL+RhXer41+npZFLD3dvAtmxSroHZQ7/TJNNlT HfBZ5Xfbr8fU4T6BQADwNw8tEv5G29BhbzOqe9NoD0jvA7irm7GdHleCcOspbPMUuopMKp Z8rioNeN32vuvKwzGfCpHVe+kYfGL+gH3O1KWERwqdn+NvXZeYiMot84JvjJchQxXAdHEG xJVAOFrc9+L76zhT0KxIudtJWftOgEbf8s467Li5qsIPGsPOUQBMek5MiB+jag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mit.edu header.s=outgoing header.b=lCRvKszP; dmarc=pass (policy=none) header.from=mit.edu; 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: -9.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mit.edu header.s=outgoing header.b=lCRvKszP; dmarc=pass (policy=none) header.from=mit.edu; 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: A96BD433D3 X-Spam-Score: -9.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: W7v+41ZWovFN On 23 Jul 2022, at 17:22, Ihor Radchenko wrote: > Kai von Fintel writes: > >>>>> Debugger entered--Lisp error: (void-variable org-latex-babel-langua= ge-alist) >>>>> org-latex--format-spec( >>> >>> org-latex-babel-language-alist is the new variable introduced in the >>> patch. You seem to be loading "mixed" Org versions - built-in + lates= t. >> >> No, I=E2=80=99m looking just at the HEAD version of =3Dox-latex.el=3D = at https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ox-late= x.el >> >> The new variable is =3Dorg-latex-language-alist=3D, defined on line 17= 5f. >> >> But, =3Dorg-latex=E2=80=94format-spec=3D, defined on line 1860ff, uses= the old variable names: >> >> (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. > > This is unrelated to the error you are seeing. void-variable error is > thrown for org-latex-babel-language-alist, so I still suggest checking > the place in your config where you are loading Org. > > However, you did raise an important omission in the patch - the variabl= e > value was lost in the patch. It was not supposed to happen. I now > restored (in 127e7fee4) the defconst statements and moved them into > org-compat.el. Thus, they can be used by third-party code for the time > being. 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#n= 1864) should not use the old variable names. Since you=E2=80=99ve now def= ined 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 in the definition of =3Dorg-latex--format-spec=3D. But of course I=E2=80=99m far from familiar with the org code base. =E2=80=94 Kai.