From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WFY4N6CuVGBjfQAA0tVLHw (envelope-from ) for ; Fri, 19 Mar 2021 14:01:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yLgFM6CuVGATGQAAB5/wlQ (envelope-from ) for ; Fri, 19 Mar 2021 14:01:04 +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 25A442DAFE for ; Fri, 19 Mar 2021 15:01:04 +0100 (CET) Received: from localhost ([::1]:43806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNFgU-0000PC-RW for larch@yhetil.org; Fri, 19 Mar 2021 10:01:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNFfC-0000NB-9G for emacs-orgmode@gnu.org; Fri, 19 Mar 2021 09:59:42 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:52607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNFfA-0005RF-Ft for emacs-orgmode@gnu.org; Fri, 19 Mar 2021 09:59:42 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) for emacs-orgmode@gnu.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1lNFeq-0041hg-2x; Fri, 19 Mar 2021 14:59:20 +0100 Received: from 130-133-144-203.mna.fu-berlin.de ([130.133.144.203] helo=hornfels) by inpost2.zedat.fu-berlin.de (Exim 4.94) for emacs-orgmode@gnu.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1lNFep-000xdU-RH; Fri, 19 Mar 2021 14:59:20 +0100 From: "Loris Bennett" To: Org Mode Mailing List Subject: Re: Sharing variables between source blocks without session References: <87o8fjscia.fsf@hornfels.zedat.fu-berlin.de> <87r1kf6xdq.fsf@ucl.ac.uk> <87im5owqa3.fsf@hornfels.zedat.fu-berlin.de> <87h7l7ps08.fsf@hornfels.zedat.fu-berlin.de> <87mtuz9swb.fsf@ucl.ac.uk> Date: Fri, 19 Mar 2021 14:59:19 +0100 In-Reply-To: <87mtuz9swb.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 19 Mar 2021 13:26:12 +0000") Message-ID: <87blbfnt1k.fsf@hornfels.zedat.fu-berlin.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Original-Sender: loris.bennett@fu-berlin.de X-Originating-IP: 130.133.144.203 Received-SPF: pass client-ip=130.133.4.66; envelope-from=loris@zedat.fu-berlin.de; helo=outpost1.zedat.fu-berlin.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616162464; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=00L1MNGCpQ7E8oMlltHgL7TS8YLOc7C3cEdX1ujCnKs=; b=C49T0E/UipaHWR1lC7j6PqkMgNbPcV18JlQcf4o+kNsPukvXZ+hBZDOhrDYuDcvWzNpPTI vQRPsj4ulO9LGMLj4cJLK70+e5+RNy34DDbEQmbFxtDj9PvFFSu+41JFg5uJUg+PnlDCDo ZJh1P+wrca13HVyGX43/aguvnvfOaj//vDKyhxcqoHNyXRyXLkhrkvklilzMeLDNLHvUID DL/zEhpjW3SMHzooGwGDv4ItsMdSmf9izsecxeDK9TXa/Afi5LtupMOGkqKHPTRi+p/R+l BpjlYKEGK2noVcUOF71STp9sHnvmTpczjxsLTw2BtA06jRmAmOWFGPhXDm2Z1g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616162464; a=rsa-sha256; cv=none; b=E+DGkX/rdkZ6ObGDNHJgh7EM/SvnJxrBJjUCAb5Uefa+0AvTK4CkeyDkcF/0UzRXwx9Mv2 wAjnnlKcEjJosckXw1riCutfE5GxCq1RPD2NboF09oTyDIyiL/VSlpB7QVMUqAX6IWJfy2 GRbq0uyl0QoqW5Z+3lfKrMjnlpEdWTU6L5IG9Xk6uhyEywn5NTAHroH56arzyGrPzWDH6x yFrWQPe50bTiCHOJZttF+QeqjeqQ/cSEePAQKSVIFNKS5NO79GLOtuNydHqoC3iSbojeNp RvkzZbhRb/bZYUywNRi/ia+c84G/8QvAMtgFlDsZoCIwIsKb16yAP0M8iuHBKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 25A442DAFE X-Spam-Score: -2.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: okw20obz0mQS Eric S Fraga writes: > On Friday, 19 Mar 2021 at 07:38, Loris Bennett wrote: >> However, the restriction to source blocks of a particular language does >> not seem to work like this, but maybe I have got the syntax wrong >> (again). > > Maybe ;-) > > This seems to work for me for a shell: > > :PROPERTIES: > :header-args:sh: :var user="loris" > :END: That works for me, too. The following correctly does not work: :PROPERTIES: :header-args:R: :var user="loris" :END: #+begin_src sh echo user ${user} #+end_src #+RESULTS: : user To be honest, I find it is a wee bit confusing that it's #+PROPERTY: header-args:sh :var user="loris" *without* a colon after the language (if I add it, there is not error, but the variable is just not set) but :PROPERTIES: :header-args:sh: :var user="loris" :END: *with* a colon after the language, but maybe I'm just easily confused :-) Thanks for the help, Loris -- This signature is currently under construction.