From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0RmPK1TxU2H2BwEAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 06:53: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 mp1 with LMTPS id sBmDJlTxU2GPQAAAbx9fmQ (envelope-from ) for ; Wed, 29 Sep 2021 04:53:40 +0000 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 5EB3729D32 for ; Wed, 29 Sep 2021 06:53:40 +0200 (CEST) Received: from localhost ([::1]:52428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVRb9-0005se-Ir for larch@yhetil.org; Wed, 29 Sep 2021 00:53:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVRah-0005sU-Qh for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 00:53:11 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:45863) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVRag-0007hm-8u; Wed, 29 Sep 2021 00:53:11 -0400 Received: by mail-pl1-x62b.google.com with SMTP id n2so654489plk.12; Tue, 28 Sep 2021 21:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=8pT/cD04KgFDKA44FhWHzV8k5a797MbIONqoPJQHp6k=; b=DDVTghgystn4WCwKPVo+T84zL6JzrVyvfOPaQhGfjZhJXABOH2sd1qXjy1z/oMWODZ TD/i1pLFGhxKAwrRbKTCwDYuz+pFhGaQ88yHFkvOaSu+9oxhllysJvqHKsbsh4L1RPbc iRFTUsSGVWwJ1Dcy2dqzHlfoGGncjRXyzlh9R/kssHkB8hNQm2zuuvkYGhdFd45ul2aq Vws/zIxfCnlX9Og1zyidKR7ehudbDFN4aXvXV6lwDRH8nEW6M9HGUHSdSpni/6+fcgBu j84UcORhYsDzyAamphAe0hd8PX1KLMS7/+yjpgz+zmWF5IxzJUR0vstT94Yj4SxA+7J8 XFrg== 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:cc:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding; bh=8pT/cD04KgFDKA44FhWHzV8k5a797MbIONqoPJQHp6k=; b=QuCFZ1HFv/MOLxUztnVfDcf7+f8jOzYX3aRCBRvE0k79MUBhvLctg0NH2/20JF/BEw X+0pNou0AMoeiIYsSQpPy01ZKFEWUHVYDlwy5Ei8d0oBM8Ct357Xj83oAkW7dutMfskY jjCy1y9Z5C5WXxs5ljibta4ER4DRk2+oJaqMkK08meScVQnJU7/hLqPx1YTYmrfg5Zg1 VN1a+TKI8oJmTCrHFZKMIGdVQu5OzJohSG7vYfd5BrTS6QyxUqBv42pzrSkgBhnVy7Zq 9otP7XqyH9csn911WobN85TsHuxbt4aOonHXH0eYeyMiK3bcAomvSBkkSekqs+UaeVG8 pt0Q== X-Gm-Message-State: AOAM530ZUbnauLbdWSvp92AbBnvmsIvx36VEbNvvKPzUilm7P2x7l5cx CIqtXbRDfyyHneUPep46L9ql2IkxFus= X-Google-Smtp-Source: ABdhPJwRBnQb/Xq+v4qaBkz3/BUchxB9L5iXEEmDZdZV9c1246iWSQkozDYUMPCJW3dV1NuMz46nYA== X-Received: by 2002:a17:902:bd8d:b0:13a:8c8:a2b2 with SMTP id q13-20020a170902bd8d00b0013a08c8a2b2mr8382354pls.89.1632891187629; Tue, 28 Sep 2021 21:53:07 -0700 (PDT) Received: from ryzen3950 (c-73-170-21-48.hsd1.ca.comcast.net. [73.170.21.48]) by smtp.gmail.com with ESMTPSA id f24sm725518pfk.198.2021.09.28.21.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 21:53:07 -0700 (PDT) From: Matt Huszagh To: Timothy Subject: Re: babel default header args as functions In-Reply-To: <87fstoc9fu.fsf@gmail.com> References: <87ftflikkc.fsf@gmail.com> <871rjqprdu.fsf@gmail.com> <875z8wxis3.fsf@gmail.com> <8735preoti.fsf@bzg.fr> <87sfxomd31.fsf@gmail.com> <87pmssmamf.fsf@gmail.com> <87fstoc9fu.fsf@gmail.com> Date: Tue, 28 Sep 2021 21:53:02 -0700 Message-ID: <87h7e4vv81.fsf@gmail.com> 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::62b; envelope-from=huszaghmatt@gmail.com; helo=mail-pl1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastien , , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632891220; 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=8pT/cD04KgFDKA44FhWHzV8k5a797MbIONqoPJQHp6k=; b=Oo7iYnVVyIBGMIz6Iitako2aLRuyl57eq+U3SDxb1gEsiic532jVNItC7HvKu5wLuoDGnp mgJtFQPn1OukISyP2GqcfIW/eFdVdjDNVnBzDmtoOlNqadqTJFmY7n+t8pz7IBL8PSQAFu WpqqQDlxwZ7XSieD8+ew2uFzWAZq42jthaqkahwXepAKT46TdqjQoQLzm8prhc8SnBWNIA YkVb0490fYxkIu08PvD1Zx0qw810exR46ydCebaeT1RbcqY+QomsWlqBDTvHEz+3w+CYRD 3WUlnKiV2fThims4+YjWJjwJURb4jCMJv2EIaBfH18IYljtmMQ9vlFEev1I40A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632891220; a=rsa-sha256; cv=none; b=P7wX93frTAQV+yNgTJBvEsothdA635+CilHsZTVAhF1yetzUa0xPH4F1WhknOouCsUHbHL XWAwigEFklG00f/kN1k18Zh6R7Z/GY/hJVgg/2FZM+AVNI/3lyzvl6Cov4BFBuY3Zmpmzs ddYfUv8sq6vPRz8N4peLHhkvRXE5YsYBztRgAvYP42okHzMn2sRmP774raebua2AtHd+8t 6Pui/DGyYMVIgSlsIr4iACMO5mX/KeXiDccAqt284q2BUzG9n+d5tqE60SO5c9HmA/jzZO QhlggMroz3XIfuTPezKak/9/NKs53kh6OVQZj2THzTaVSi//TyUv4KEiD4FI1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=DDVTghgy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=DDVTghgy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5EB3729D32 X-Spam-Score: -1.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: qcunbRNC7HdR Timothy writes: > I just read your docs patch, and that=E2=80=99s lead to a quick question:= does this patch > support a header arg function in the form =E2=80=9C(:file . #=E2=80=99my-= org-file-name-generator)=E2=80=9D? Unfortunately it doesn't. It's been about a year since I wrote this patch, so I'm a bit hazy on some of the details, but IIRC it has to deal with org-mode's use of lexical binding. If you're interested in digging deeper (or maybe even getting it to work, which would be great) I'd look at `org-babel-eval-headers'. The `functionp' line in there returns nil and the function isn't evaluated unless it's a closure. Matt