From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GCQWFygH/WRu+QAAG6o9tA:P1 (envelope-from ) for ; Sun, 10 Sep 2023 02:00:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GCQWFygH/WRu+QAAG6o9tA (envelope-from ) for ; Sun, 10 Sep 2023 02:00: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 BDE18534A2 for ; Sun, 10 Sep 2023 02:00:39 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=k9i20OLt; 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=1694304040; 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=Hh+BT54b7QbM438ix4yMRUKVEFSHXOEr3ar0wh9/WU4=; b=OUv26lvLhlBIe1e6kS5XunEQ0Rujm5WDwrzD7mTFd8L20kDwjEqI3hbkNSCXda/K3/DKx7 nSB6Xk0pokK7/2XT2YM+CxPNuiJTax0hoT/qBEBXuiaz7WslPA/0oqvpxqQj8hd6YCW0+k VEX70pYLgfjNTsvBAVB6VvcEOvYjGgGmwYCp0Fc9kZ4V+u6rmfWfSWJcCzCSdARvGQQK+a 0L2ZjNq19FjwPaPmPklE3qb9rY4bGgUfheB96xQqOycdaUS5JfwjTGOZqlEtpJv5rCtxzU Pcg8BXpO5Hk4S6kJVoY+ZF3bO+pGa47UC6d9wdewW6EkFar6csFKHmthXO/eJw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694304040; a=rsa-sha256; cv=none; b=nK2O8Nbw4bQvqi/8Bjixrv9Gwbep92k5hYwDpOtxOQyuvCYFR20hti+OecDz2yuTfLqi67 mGlru9d1FmHVPC2ipBlNw0d+Q9ZlXUjs9NdP6bhLf5dIfjszuwqNQGajFD/TUj2AF9jj0d C66iaWWI8irMoBgya7TumY/DD+HdvJbUWf2h3ESAwVTbCppAxff8iIRZqCcLOG8pWG1BdK cbtvU6ve1GlZVQW/5vvccFHIxLmJEm4KYQ1WALxevBJC820p2iR4SivStsUm5QMoNd6JDn LDrtWaVJZYdHn1Uk1iorIEj6U+orswmJ1O8v8N11Ghi191e7s12/aHzCdq/obA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=k9i20OLt; 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 1qf7rb-0007JG-ET; Sat, 09 Sep 2023 19:59:43 -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 1qf7rY-000763-D7 for emacs-orgmode@gnu.org; Sat, 09 Sep 2023 19:59:40 -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 1qf7rV-0004Sv-3d for emacs-orgmode@gnu.org; Sat, 09 Sep 2023 19:59:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id ABE7F240103 for ; Sun, 10 Sep 2023 01:59:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694303973; bh=sMKMUTHdcBz7SZP2L2CkNiPjBL71pJtjfsvrSWHtp8I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=k9i20OLtmdelnqYhNOm7wzrw0RDD2X2g3wG0oZW54ap3b9gBx50T3Rjf9m8detxBu t/9fuylYkomuK5d4uh0JQw7b7C0UeXvMRGJvoQUifW7V0d0LAGNmTYgwBlHIDpES1E 70JmnAEEj7nIFTySSZYrO2ncL7Oiaq+VAUWY/Ux/YvNYUm2p97o662thucU5zYYIGw wO8fi2vf6xbbNjYvVtVzuS49dVliHK5KMdCBIrIIH7g8NetjyYUOABAHAtQZUAL5QM 8n5s88Lwj1ltQxX61Ix3ygNBFw90NPZ/6JIO5ds1WuaBO6sqRNovFlUXVE++3CY+GE k5DlbABoIMM4A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rjqhh74t2z6tvx; Sun, 10 Sep 2023 01:59:32 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: emacs-orgmode@gnu.org, Max Nikulin Subject: Re: [patch] Fixes and improvements in org-latex-language-alist In-Reply-To: <87a5tv7f9n.fsf@localhost> (Ihor Radchenko's message of "Sat, 09 Sep 2023 11:33:08 +0000") 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> Date: Sat, 09 Sep 2023 23:59:30 +0000 Message-ID: <878r9ezyn1.fsf@posteo.net> 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=maciaschain@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: mx2.migadu.com X-Spam-Score: -9.11 X-Migadu-Queue-Id: BDE18534A2 X-Migadu-Spam-Score: -9.11 X-TUID: tGejpD7DWMOz Ihor Radchenko writes: > I am thinking about something like > > (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). 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" :scr= ipt "latin" :script-tag "latn")) ("de-de" ,@basic-code) ... ("zh" ,(funcall shared-plist :babel-ini-only "chinese" :polyglossia "ch= inese" :lang-name "Chinese Simplified" :script "hans" :script-tag "hans")) ("zh-cn" ,@basic-code))) Likewise, there being two cases (even in the case of Chinese you could perfectly omit zh-cn, because it is a new language and there is no danger of regression), I would say that it is not worth complicating the code so much. --=20 Juan Manuel Mac=C3=ADas https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com