From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wI4WNot2/WQpBAEA9RJhRA:P1 (envelope-from ) for ; Sun, 10 Sep 2023 09:55:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wI4WNot2/WQpBAEA9RJhRA (envelope-from ) for ; Sun, 10 Sep 2023 09:55:55 +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 BB14550142 for ; Sun, 10 Sep 2023 09:55:50 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eaGWbkl8; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694332551; 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=00X3Iwf1R93C7mXpOVt2yDNIQBYmeR9wmMXw8bIlaho=; b=bXdSWE4nubdAO6kuikPAHv0ry6fCoKkLtQU3mUOEH/jbfTDAjUnk2Oouxc2Xak3suU3Mcx ul/kQEGMowC7NaTvSO6qoDwnsTbP7p9MLENIZZ4HiSp7koiFkFwPs+tqZxdJ8zxcaK6zwF 3LC3RrA3QHbur+b1Yx5RdbqcKCN+g1czefv+yLhAbwlFv/NIWgI4EzwQlRUGHJVZ9isOuH exAAdfGkeV7gIzs/z2n0sSbdMqevjMpnVKGX8qykBQhYe02b5J/a0vPiwTKxXjEHnz03+B TFRBipGbahl9K+OX9f+ZBDZWGLujDNMZRzDcCc9Y/JqsmMMJx6Ldse8WJVB9sA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694332551; a=rsa-sha256; cv=none; b=hhtG+XtlclC/bDnNfbKsEFauhSaEdHDfnyd5iU4s2MHYm3G1TZULAYFccRI6IGpD0KAYGH PfnLy6Ys8Qa/ajrn2MC3OrXl+KaSDTUzBvPtv/r76lvL6JEKNMvM3pkjyDW5pAZ/3aDnvV ezneMXMnP+2CkTW1Bt1IKIc0EXO+9sChusQ7MOaqdzW0Zo/A0+1cybkA/45AH/To/gpLGf lYyKorOzeukTdIbjbAI9Hlzak0pUmaVyIRw99k2NqfBxiU2qdZ8oix+JcOsnKnEmp+05P/ ovO7CWEiorGC4njNDs1Zk0hkcGeiXDeJJmrSdoYZ18FXnSmd+ciTfaeKlZic6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eaGWbkl8; 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"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfFHR-0002Eq-HS; Sun, 10 Sep 2023 03:54:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfFHQ-0002Eh-3o for emacs-orgmode@gnu.org; Sun, 10 Sep 2023 03:54:52 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfFHK-0006h5-F5 for emacs-orgmode@gnu.org; Sun, 10 Sep 2023 03:54:50 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 33274240103 for ; Sun, 10 Sep 2023 09:54:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694332482; bh=O9abNxyxrPTic+mvleSjh3nTvPSEBm1mWYTU/CjNgks=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=eaGWbkl8gs14eUjSJ51H/M2+UQ5slB0420FTEPjucwNB9P49yi8iamXWhugMckdVQ 5GSVubU63/4F6bJRoZ4z+r1pYwjVcoJq2yibaBCDHZQY2Zv26OLKeRC44ylf2l0Uji P4khUjN11YpVJV5d7lkLL4806Vk7oQnd5dR1yOk0937YLacZXQfQIUBhp8LkSsHXQM NN1g8W4JUe6ZU7L3UCURvKpgX7gRLi+sbmFeoV0C26CxUf9AUPIYLK9kxpMpvx1haA pvSkpEkHOcWnKk0DC5f2bdlvowpkHlzthoME/wVn/tzC/f364lNpZEr/IBthvdR5wf 7BBsv7ZDXAGsA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rk2Dx36t7z6tn4; Sun, 10 Sep 2023 09:54:41 +0200 (CEST) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: emacs-orgmode@gnu.org, Max Nikulin Subject: Re: [patch] Fixes and improvements in org-latex-language-alist In-Reply-To: <878r9ezyn1.fsf@posteo.net> References: <87v8cneyfu.fsf@posteo.net> <87edjanqxb.fsf@localhost> <87o7ieukum.fsf@posteo.net> <877cp0ybdg.fsf@posteo.net> <8734zoxzd0.fsf_-_@posteo.net> <87tts37lsx.fsf@localhost> <87msxvzl9o.fsf@posteo.net> <87a5tv7f9n.fsf@localhost> <878r9ezyn1.fsf@posteo.net> Date: Sun, 10 Sep 2023 07:55:42 +0000 Message-ID: <87o7iajwch.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -2.31 X-Spam-Score: -2.31 X-Migadu-Queue-Id: BB14550142 X-TUID: CJwTwUsrXiDi Juan Manuel Mac=C3=ADas writes: >> (let ((de-plist '(...))) >> `(... >> ("de" ,@de-plist) >> ("de-de" ,@de-plist) >> ...)) >> >> This is copy-paste-proof and does not require breaking changes in the >> value structure. > > I like the idea because it avoids errors, but I don't know if > it's worth it, there being only two cases (at the moment). It is not that complex, really. I suggested the above approach because: 1. It is easy to read - clearly, ,@de-plist and ,@de-plist are the same thing. 2. If we ever need to change de-plist, we should only do it in a single place. > ... This other > possibility occurred to me, just to make it easier to read and not have > to navigate to the list of variables: > > (let* ((basic-code) > (shared-plist (lambda (&rest plist) > (setq basic-code plist)))) > `(... > ("de" ,(funcall shared-plist :babel "ngerman" :babel-ini-alt "german"= :polyglossia "german" :polyglossia-variant "german" :lang-name "German" :s= cript "latin" :script-tag "latn")) > ("de-de" ,@basic-code) > ... > ("zh" ,(funcall shared-plist :babel-ini-only "chinese" :polyglossia "= chinese" :lang-name "Chinese Simplified" :script "hans" :script-tag "hans")) > ("zh-cn" ,@basic-code))) This is less readable compared to having ",@de-plist" - ",@de-plist". One would need to put extra effort to understand the equality of (funcall shared-plist ...) and ,@basic-code. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at