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 YJXsHeoD3GK6fAEAbAwnHQ (envelope-from ) for ; Sat, 23 Jul 2022 16:21:30 +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 KBHSHOoD3GI2YgEAG6o9tA (envelope-from ) for ; Sat, 23 Jul 2022 16:21:30 +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 2529042FA1 for ; Sat, 23 Jul 2022 16:21:30 +0200 (CEST) Received: from localhost ([::1]:45774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFG0X-0000O2-6C for larch@yhetil.org; Sat, 23 Jul 2022 10:21:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFG04-0000Nj-UP for emacs-orgmode@gnu.org; Sat, 23 Jul 2022 10:21:01 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:34798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFG00-00010q-9W for emacs-orgmode@gnu.org; Sat, 23 Jul 2022 10:21:00 -0400 Received: by mail-pl1-x62c.google.com with SMTP id z3so6797706plb.1 for ; Sat, 23 Jul 2022 07:20:55 -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=zSCQVM41L5nq+w7+MCy7hX2yv9y81GQImDiZbcfUVdU=; b=c28dOonWjBxbbJl8DJfsMfV0BTRxTw49zYCBNL8ZCkp0E0XKIQXOqqmg2jh39xAb8N iry5pTnlm9xLre1ob3UXm1wZFCWgVNVtB00y7W2Mx+UkAkYbDVZkhfA66SD1mV0ZJQLg PbwTvNmWYFsrnl842tTsa6F87lLmVgtJR8U9hZo6JIsb9yTG0yfj+HdcMhk/Y7FWRNZW M/N0yvPw8nmrI+NzP2MtUNaKUPJpVU5e/sy5gC+u0C5np6vdQlN23uvnj3fbEYHgqsTF nlpz4GllZf4BzPtgO/mfWCTCIWjMzpAoJ+dbnV/BBiR8TCXiCnSZ6xGeXrTrQutOR65w vtCQ== 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=zSCQVM41L5nq+w7+MCy7hX2yv9y81GQImDiZbcfUVdU=; b=d6xeWnxMhT4W4VWndhIw1vuC1xHAG5R90wWOLOZXGTgDkQZTBKzLyVHx/TiVqtgW9j 8fRqBvNd+rhxUg0Mm8xcd9qgwtTI3RIMMeg4mTq1NU3zx8FkJQyYoY7Q3+iyWP82e5pg dEixTHQFjxfV6c5YxzN/lzXdTYEtqcJ6HjxgCNolWsuaWBm8Wlol3fAVVrx5HfGVgpHK FjxoNZO5FCOYjqQES+0gnad+1KvIGelPLJ9SOHR8VpC77jZkhYg2c4oIFL6Xh8QQvpUk cN0EEyiUZUcIN0mP+XgZtFBs/IjJFnP9L+2sWXZhZ1hCVItnBIWlLDjeYMgQ7coI8iW6 D5ow== X-Gm-Message-State: AJIora9kcZvmQYn9iIXTmdSyBYqp+KH2vp8xZ0apxCglXuBkkWmEqDPM sHhPdJXxF/auxwWbNrVs+mo= X-Google-Smtp-Source: AGRyM1sNcL1gv8IHYL6WWsRdD/LiCdR1boDP5B4cBtxOfvOS6yg8iD5rSiWKXRPyfEjMRvujmICbiA== X-Received: by 2002:a17:90b:17c1:b0:1f0:1fc9:bcc7 with SMTP id me1-20020a17090b17c100b001f01fc9bcc7mr23490085pjb.53.1658586054746; Sat, 23 Jul 2022 07:20:54 -0700 (PDT) Received: from localhost ([111.19.47.174]) by smtp.gmail.com with ESMTPSA id k21-20020aa79735000000b0051c758a3957sm6097000pfg.149.2022.07.23.07.20.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 07:20:54 -0700 (PDT) From: Ihor Radchenko To: Kai von Fintel 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: References: <87pmhw9bfu.fsf@localhost> Date: Sat, 23 Jul 2022 22:22:00 +0800 Message-ID: <87mtczaozb.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::62c; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62c.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=1658586090; 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=zSCQVM41L5nq+w7+MCy7hX2yv9y81GQImDiZbcfUVdU=; b=rNJDzzJ4ibo624rbdpcWwII61rE8IcgmsnWWlMBAo0aUDB7a8p86wtEUM65j80+z7LW//5 ybikTXxm8vyQx2vevfHhMg44eW1dUk6aboOO8ZnXD5qAEeBoMT+nF0fNvoH/bHoESb4yEz WVW73QOCkClQsUJJGjE/ovR3FEex6fqgMGn1Xyj/DEP5eceT0KWsriKWL7+sYTxS07YDeY 7Y2j4t0YZQxL5nYGPikHUBDud8paoduq9/ns1uSpFCgP9kus7W2uQtqiDX9/WYbcz4tuT5 DLPMGhCsESmvmRqZlsie+iDyIoaNWOJhZDsSJWBBwETXVl1b8fWlmuqE5wPS0A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658586090; a=rsa-sha256; cv=none; b=tpJoYKjZz+XIUIJ0S7bl9z0D4yhx6JS4IGjtfU/46H+00f8qbHR5EbuljFA5aDR1Z/No3d ic+SAzPBCH+x2XCJ/M7x8OfTAL9LEBcKZF0ow7rtxN6FA9yiueMv50aAwyX2aVQJCLew8q jnxNXhHYsTWSA0lhuPynAskJvSLb4MCZKp5ptQwUnuBCrDKe8N1VOv6ZC/QMgfc1UcWXIq gex3/djrrFoZYegOwWWWv5OlVb76Cnu7yXEs+l9uNoa2eLGSunHEJHrbJi13FE5bWQpwHG h93w0rgMlYrrwMuroaScLw8/cdUv20jvQP/Ewas9j3hB9sunc3PzL1bPg9z3OA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=c28dOonW; 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: -4.73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=c28dOonW; 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: 2529042FA1 X-Spam-Score: -4.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: wLCCeSIc9CkY Kai von Fintel writes: >>>> Debugger entered--Lisp error: (void-variable org-latex-babel-language-= 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 + latest. > > 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-latex.el > > The new variable is =3Dorg-latex-language-alist=3D, defined on line 175f. > > But, =3Dorg-latex=E2=80=94format-spec=3D, defined on line 1860ff, uses th= e 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 variable 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. Best, Ihor