From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Q1byJRxmqmDUmAAAgWs5BA (envelope-from ) for ; Sun, 23 May 2021 16:26:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YI0FIRxmqmBTeAAAbx9fmQ (envelope-from ) for ; Sun, 23 May 2021 14:26:36 +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 ACE72DB2C for ; Sun, 23 May 2021 16:26:35 +0200 (CEST) Received: from localhost ([::1]:37402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkp3q-0003Px-Di for larch@yhetil.org; Sun, 23 May 2021 10:26:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkp3F-0003Pn-GO for emacs-orgmode@gnu.org; Sun, 23 May 2021 10:25:57 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.219.209.13]:57348 helo=nice-culhwch.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkp3D-0000Nw-KP for emacs-orgmode@gnu.org; Sun, 23 May 2021 10:25:57 -0400 Received: from lead-glaistig.authn-relay.a.mail.umich.edu (ip-10-0-73-177.us-east-2.compute.internal [10.0.73.177]) by nice-culhwch.relay-egress.a.mail.umich.edu with ESMTPS id 60AA65F2.72370.45A62E8B.315146; Sun, 23 May 2021 10:25:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1621779954; bh=KvrsfhjTWOfSn6wnRYmxznZLjM7T90yDAoR+L++VqlI=; h=From:To:Subject:Date; b=IphcZ+359yS+yDDM8nYKdGRfAtMe8MirpwTb61OJ8DrzGMLS0TX8ySviFyZtKohs2 ILb22UdLJLjKgd5YIkTJn1Yq9pSg4QJDSCgskLm2DB0g9HujRs21vjSVvF/m/utSn0 IPZwwhCRozZDI02Db9WIqVUU5x6iVb8/d0Bu6k8wqgtUgLIh3VgZd1+kjZPFUE51NA A1gcrdFSGaq0qsVV0acTTh+ggq9Z3ca3miuKpWn84wuPZCZCmniN6AXW79BuQ9cViy ZVeP27iaSmvn8oYQm2Y64/y+B7aCoSdoticzx9NI46x6lcqPjXVDu0pTjOMLoMKGTp sXLdpjcVv8piQ== Received: from localhost (Mismatch [88.236.240.114]) by lead-glaistig.authn-relay.a.mail.umich.edu with ESMTPSA id 60AA65F1.260EF.5C121F12.3802175; Sun, 23 May 2021 10:25:53 -0400 From: Greg Minshall To: emacs-orgmode@gnu.org Subject: declaring :var in a property drawer X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3303284.1621779949.1@apollo2.minshall.org> Date: Sun, 23 May 2021 17:25:49 +0300 Message-ID: <3303285.1621779949@apollo2.minshall.org> Received-SPF: pass client-ip=18.219.209.13; envelope-from=minshall@umich.edu; helo=nice-culhwch.relay-egress.a.mail.umich.edu 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: , 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=1621779996; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KvrsfhjTWOfSn6wnRYmxznZLjM7T90yDAoR+L++VqlI=; b=J7wcQuuFOtWctRaYWgtiHTCghDokq2BbF+HxQ6ErNdB+ddlgBpa3oJwYw9CzFMgDM6fL4e UEoU5cxA/OarinG1LpfhiCKEyy7etLAsQz4ikOClT0fzn3jKSgVoKrAcRYZo/QJ/P0CPcv MMhaI1Ws1BEDVIzd+ifdLVgeEBgC50iJkeMB5ufjc2z8c7nebQXTpt0fkIE9FGmqo26GxG kS9tyjCyo8C++Nj3rQNUDrk2AZC1LafmaJq0yYahXVYQ31EHU/9fJrrqwe7zT6V1rrYQfZ 9xzOMxz5AMRApzjQVnglqr5xNCvX1NZ4Oc2+Pc7SpxaLcI1neR+JBnGbg56/JQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621779996; a=rsa-sha256; cv=none; b=T4sir+EcLUFJl6nE9fFHHvIf7HU5OSxSt0MsbOmpFNrhIMsnGMUyxwIuefemLYFtHY5QRK WEbWq5UKPm0XhPc0+ECxT5r7u0G4QtEIwt5xGqEryMFdoiEwSkjZ0ZcSmxdfHKKkXgpLkP C8zYIHXaDU5A3ASVSW8YecfHB9O2sjlONH1TBR0NwlpVusiWl5sgvB/38wZ8Ljso/AHOPY WNpYuj4HMtrjXXa3etv615ScFdzIh4f6QLkhKalyuNC4h1zFB+PYwLtgF2dsnyuc2kZDvB AW6b6gSUXaSgov54vAOp3i/GrV41zF8aalyQ2g9nVDWbGPYJGllpMmisnoZZTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=IphcZ+35; 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: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=IphcZ+35; dmarc=pass (policy=none) header.from=umich.edu; 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: ACE72DB2C X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: PVFpTIxROpgc hi. i noticed the following behavior, and am curious if it is intentional. if i declare a :tangle and a :var in a property drawer and then, in that subtree, have N>1 source blocks (which will all end up in the same tangled file), the :var'iable will be assigned a value N times. below i have an example using bash source blocks, where it doesn't make sense, afaics(ee). (when exporting elisp blocks, each :var'iable is assigned a value in a =let= form that surrounds the code for that block, so i guess it makes sense.) cheers, Greg * :var's and property drawers :properties: :header-args: :tangle "foo.bar" :header-args+: :var x=1 :end: #+begin_src bash echo x is $x #+end_src #+begin_src bash echo "'x.*=.*1' occurences:" grep 'x.*=.*1' foo.bar | grep -v grep #+end_src