From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KAh2NhVPsmQKSgEASxT56A (envelope-from ) for ; Sat, 15 Jul 2023 09:47:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WDhDNhVPsmTkJAEA9RJhRA (envelope-from ) for ; Sat, 15 Jul 2023 09:47:33 +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 3A3865FA14 for ; Sat, 15 Jul 2023 09:47:32 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LaNf55rp; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689407253; a=rsa-sha256; cv=none; b=p1g6T506fYBM9Vpfvljv9n0/jGRX+2OgAHw9yLC7x0zgedft57GJNnHBn/ixaC1dC4XGNt DCFahIlY2nMrODJyruadAz1fQf2EjjHLA3d67pku92BITr1us/M5CckN15auQOTOWzVQA9 uo8X8yu6rdeLZUkdDq1Xw5yA83EM9dM/c1U9OU7uJyRMy3d2tRUfNQJhAKSd8BOQ4ADMRU SbfrwkPc/XS8/2DKMz63heStJHVQOBeri50VV0dKUZiUHRs1CqDmwx4CKP+NE0TsVuucPi k2vIUPXJ9jN+njczZFXz9mIZNuRiXtRSoPzjWPF7Yl8AWi0Ztam4pmSV+dYlFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LaNf55rp; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689407253; 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=MXkZNWOd4IxgfXsaBD4hQzmuzwQOt0TC0dwCWrD1ZjA=; b=J8hJ+cGUKBUkaPnv1O2w3OsBBzjF3MAtT16uGIQ0z3DnVhx15tPGJBdUTnIFHxrJVml0BN hZb+oifPKoUou5AduhCZlIWDMHAQpNsg2DW1G1mOjmkD1XP4sep74YOE3SXjKcY2aD+CuX 97u/8helmvAj9yxFB0H3AXMXX7GYDkM4hNl5OQm0LDyC1wLQTWlzCOAhI6V+6GzpsIgFkY C8AbXFnivyMX9PhKSYc/Gj+jITjCGdcEQC1XdCTVH5CRb6an11HE1LCEhagIsSBrtIBy1N V/vZg4ZrLjID2ZqIWJ6O7H1X8l5Yjf3zSBPgpzSfUtLVS3VT/9bqis955d4KBA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKZz1-00054f-8D; Sat, 15 Jul 2023 03:46:27 -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 1qKZyw-00054T-Ix for emacs-orgmode@gnu.org; Sat, 15 Jul 2023 03:46:22 -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 1qKZyr-0006Vr-3h for emacs-orgmode@gnu.org; Sat, 15 Jul 2023 03:46:22 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 96981240101 for ; Sat, 15 Jul 2023 09:45:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689407150; bh=MXkZNWOd4IxgfXsaBD4hQzmuzwQOt0TC0dwCWrD1ZjA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=LaNf55rp+JuxJesevysfs0J3atLDRm48/PKGoKE0X95DUAbZ4oH2kTuFRPrqeJ4cK KuQdkaATROgt92qVG4r5Fx2cBMmON4cY1xjdLttaFTdy1rUSehOIH1SEm4jKAkgQPs ZDsRXxaLnuJxtthyzJsZiRkDTmnHyC0fkuIIVht78TTsJQYpX8sXRSzd9ReG/vxi0r gG5nI8cdMLTiTV9Nyd6DOzwz/jNx4qrtDRjJfndx9ebUlRYWgGD3TcTYBo1H2ks+6B RCoLrN7J1py/TvfR78JS0jHWA79RglMDmBDzGPMPNjtFW6cYMrrPqi4MzQ8Z9TvIwM nIE5DJe9xMHLA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R30l16mfNz6tsB; Sat, 15 Jul 2023 09:45:49 +0200 (CEST) From: Ihor Radchenko To: Timothy Cc: Evgenii Klimov , emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH v2] Add the capability to specify lexical scope in tangled files (was: Add new :lexical header argument) In-Reply-To: <87y1jic05b.fsf@tec.tecosaur.net> References: <874jm7d5ou.fsf@lipklim.org> <87351rd58c.fsf@localhost> <87zg3zbegv.fsf@lipklim.org> <87jzv2j1m3.fsf@localhost> <87y1jic05b.fsf@tec.tecosaur.net> Date: Sat, 15 Jul 2023 07:45:58 +0000 Message-ID: <87ilalhb2h.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, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 3A3865FA14 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -2.31 X-Spam-Score: -2.31 X-TUID: RbN2EO9UbMCf Timothy writes: > It occurs to me that this use case could also perhaps be satisfied by fil= e-local > variables? If we presume that mixing tangling to lexically-bound and > non-lexically bound elisp files is a corner case we don=E2=80=99t care th= at much about, > a `org-babel-elisp-lexical' variable could be used to set the behaviour, = and > modified using file-local variable forms as usual. I do not think that setting `lexical-binding' file-local variable in an Org file makes much sense. I am sure that we can do better. I can see that there are people in favour of :lexical feature. So, we can probably add it, but it should not be in ob-core. Instead, we should provide an infrastructure allowing ob-* backends to modify tangling. Maybe some kind of special function that will override default `org-babel-spec-to-string' per backend? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at