From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gGwaK95+VWATKgAA0tVLHw (envelope-from ) for ; Sat, 20 Mar 2021 04:49:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iLK3Jt5+VWDCBgAAB5/wlQ (envelope-from ) for ; Sat, 20 Mar 2021 04:49:34 +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 12E6D1A056 for ; Sat, 20 Mar 2021 05:49:34 +0100 (CET) Received: from localhost ([::1]:41322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNTYK-0000vV-SK for larch@yhetil.org; Sat, 20 Mar 2021 00:49:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNTXr-0000u1-4g for emacs-orgmode@gnu.org; Sat, 20 Mar 2021 00:49:03 -0400 Received: from out2.migadu.com ([2001:41d0:2:aacc::]:35958) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNTXm-0003Ic-TI for emacs-orgmode@gnu.org; Sat, 20 Mar 2021 00:49:02 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1616215734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=U+yiDMb5iOkpFWDv6GlxaX/YdbYdevxw1jL3R9v0JeI=; b=cu1BeOvHDPJ01LDEuQ1U0LUmE+1WXOCriix9NhkwgWR9NQarAW00cR4bt/uPNtIb76t3PA bu7czdgpQqkSrzHvQQysnQsVzk/o1P9tZbvZVmVR07XJJoijg29c+k5NV3HIdLXmzVGpF4 g0oBjL1aNaHiQwm7Avb2tRHXJofqq/yLRvopHkgfqqYL1tEXABj6nqDSiul6GyYBGThd7W Zo6AcB0E9FZUz7kxM5HnkWbRwzZJxnTPieblOi3Sgn49Y+K+gl4b2JMw1AMMX3xARySET6 wGE/Uumt/tQ+yccYM2foERGZ7OCqSO+vIjmtwHXnVQcuWhEo+/qHfR2BfuXxXA== From: Kyle Meyer To: Greg Minshall Subject: Re: Using lexical-binding In-Reply-To: <352069.1616171012@apollo2.minshall.org> References: <352069.1616171012@apollo2.minshall.org> Date: Sat, 20 Mar 2021 00:48:52 -0400 Message-ID: <87o8fe4eh7.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=kyle@kyleam.com; helo=out2.migadu.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, 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: Marco Wahl , emacs-orgmode@gnu.org, Stefan Monnier 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=1616215774; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=U+yiDMb5iOkpFWDv6GlxaX/YdbYdevxw1jL3R9v0JeI=; b=WGSjo4+zN6OrHB/PQrof2cm7xuHYE2GBhHTpb9RyOAk9LEE1xpwTrVUmdLip4gPNAdTw1K XC4pUa/JneT/Nfsd0WsAWaloIV18cJG6SMK3d7HGc9KGRlq337hPedgpAxm+O92whTiK2w GPFR0TYx7piuAajMa8ImFxWxynJ0ZrT0XsXk5wqUki7EzPPpLOXn79iQEvS6juewre3Wgh 9eeVn7TC2zdfNxntOU5ubzkQk41Dx1vZE4eYW8sB0f3lhDYbWHUOepW72FhfV2pSQ2Lb2a EHcsU9VfWOf1dO3Udy3hIaEx0d5xZ7Pjy2+nW70rXLhZmmqy92QxYNc+l5wAOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616215774; a=rsa-sha256; cv=none; b=YcSwvLrksXXnxsbk+YYQW019p7Onoh0HzgNCUjYIBTyi9p8YVEetiOQNIewCASLGfUaYC1 2taNiid2237UAIEic++8VrLued+tq+/n3TNfytamioXkPuKniIhDjgbLkHIP8ujRAlqZFh LINkbHUcGeZDUHOyCSBeTkoXIFWjVij+8iwaWnCyHfYvo4isyuRkMYu0jd9QvKhZGxlDgb sBwPGL7JaYdWUm8QfgQqDtyZ6j9bQ0Yt07FnXGCZ2hP8FnYPuylIGsO2Qk550aSA2H4P3c MtRVntxsHbFf5dfohGj9lrJ3klTvvgSkZDWQbOutTBED90QjyEjAf5x0YS0S0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=cu1BeOvH; dmarc=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.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=cu1BeOvH; dmarc=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: 12E6D1A056 X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4/jZFbKaVrAZ Greg Minshall writes: > hi. i just upgraded to > : Org mode version 9.4.4 (9.4.4-27-gb712b9-elpa @ /home/minshall/.emacs.d/elpa/org-20210315/) > > and, have also just started playing with > (org-babel-map-inline-src-blocks), the documentation for which says > ---- > During evaluation of BODY the following local variables > are set relative to the currently matched code block. > ... > ---- Is there a specific error/misbehavior that you're seeing? The patch in this thread switched only one file, lisp/org-agenda.el, over to lexical binding. org-babel-map-inline-src-blocks is in ob-core, and that file has used lexical binding since 6cefae163 (ob-core: Use lexical binding, 2016-06-20). > but, iiuc, that relies on dynamic binding. so, as =lexical-binding= is > =t=, i don't have access to those appealing variables. org-babel-map-inline-src-blocks is a macro, and these variables are defined in its expansion. Try: (pp-macroexpand-expression '(org-babel-map-src-blocks nil (message "%d %s %s" beg-block lang body)))