From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YL7XDiSDZWAQGAAAgWs5BA (envelope-from ) for ; Thu, 01 Apr 2021 10:24:04 +0200 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 qFP2CCCDZWDoVgAAB5/wlQ (envelope-from ) for ; Thu, 01 Apr 2021 08:24:00 +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 B27DE148F4 for ; Thu, 1 Apr 2021 10:23:59 +0200 (CEST) Received: from localhost ([::1]:38270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRscQ-0002L4-S6 for larch@yhetil.org; Thu, 01 Apr 2021 04:23:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRsbh-0002Id-JR for emacs-orgmode@gnu.org; Thu, 01 Apr 2021 04:23:13 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:55021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRsbf-00058V-4Z for emacs-orgmode@gnu.org; Thu, 01 Apr 2021 04:23:13 -0400 Received: by mail-pj1-x1029.google.com with SMTP id w8so754135pjf.4 for ; Thu, 01 Apr 2021 01:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=tX5ajy+xrJYYXJbJZTvXVw33iOsWP+c9VQgPv4NAw1w=; b=b9soHF12hlahfumwkcORp88uiTsSi2oom3HyytC6oPVIet1+e9l4QXqgiuAS1Je3hb aQmrsoSVxPGOAXi7sLPfLIDrX5QiNA+jPU08pTwriqq0ZpNy3sj/h6jAzeH1mOQO826M JTsLIhnTjpUDL68FiTZwNDGoD2E48GIzHojcKibPmpCyftFLiaF/thq0Pb8BTC/EnLKP 6BFTDMQ9/bmgcY4kGheW2pRUOgxQNy/8Rdb/5NFNRbLzvs71D1w2/mwU9rFrZI1h7gcP QWce7rO4VVdWQTwoigzEEvAF0NZa9nvEOnqMNMGWZfL14JYFukfQcab0XLvfAPu4s0cj SYMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=tX5ajy+xrJYYXJbJZTvXVw33iOsWP+c9VQgPv4NAw1w=; b=WTmvT15XUSaEXgtYQChX4RjSkNDdajdxWAqX9KVc+8ZXo8MePZiA/7xxHklslt2yJe UpFxVb+LvnG+p6FwUstp9zPC9h6HdTYT027SNvElAiQNS7JvKcFDx24si0Rwz9FD5EZU Uvf7OosU1HjpZ5fFw6L8RS+j0bICmr6vtB+Dn43pqmPsl/XUWgo4ve5pg1m3KPhgUQWJ RCDpbo0L9bcUNKhlBnNNZMVoWS3lvYZ1Q8t4CoaMhWKqDUlcroUnJsPabx3Lvc9Ixnso fSmieSkR6oUNp8wORlGzvvw1xiUBrzfKqa39yDYMck9fOOH+nbA+awGHQI8eU9YrM34d vsqg== X-Gm-Message-State: AOAM530OALgrCETKXlg76bgdkE4T09ls28rr0fAINmUFxHnPh1eZJR71 jkZBGMMjli9GrHuxZnItlL2Sx7iHUCA= X-Google-Smtp-Source: ABdhPJwXZb+YkEqfiNspXxXJME/wTYK8Z3btuQ3ZKWd4y9Zw8XW1UhUeXyhnHISLMPwP8vveasSFGg== X-Received: by 2002:a17:902:d64f:b029:e7:1f02:5741 with SMTP id y15-20020a170902d64fb02900e71f025741mr6786604plh.48.1617265389176; Thu, 01 Apr 2021 01:23:09 -0700 (PDT) Received: from [192.168.1.131] (222-154-27-167-vdsl.sparkbb.co.nz. [222.154.27.167]) by smtp.gmail.com with ESMTPSA id a26sm4727276pff.149.2021.04.01.01.23.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Apr 2021 01:23:08 -0700 (PDT) To: emacs-orgmode@gnu.org From: Michael Gauland Subject: header-args property Message-ID: <41610a78-cc6c-48b3-9049-6d8f9d61f14e@gmail.com> Date: Thu, 1 Apr 2021 21:23:05 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=mikelygee@gmail.com; helo=mail-pj1-x1029.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: , 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=1617265439; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tX5ajy+xrJYYXJbJZTvXVw33iOsWP+c9VQgPv4NAw1w=; b=RltdVGLbREEAqgzU0HuVqYBKDbGpWeEbloH8+G4/BdAHITKxmwtZudbmRbwP24VotRSBBY Dtw8vDJqB20zrrOTDzN4iAhg2Qwr6eD7MFCqv+CMQZLdX2EjTQ9MvXtjLZHSRMEEE5nCWE 4VJQbG4isfM/ig6BW/z9qkT8Tt8f1bbx1es6N8TpbCQc0CZYiQfklKd/PRkcrTffJWiX5V XsyvYjrcl5gRcYtT5dv2IZdCpOBdTs1Gt8t39d7ozn+dKYSGxaGGN8LTAz2fgIaFXgw4o9 w68APcwx7NXTD0Bp1nSmGt//auZARG9ccwAJ4dEmYAT00+mZP3Xqp4fUvWMdOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617265439; a=rsa-sha256; cv=none; b=leb7ZgDKXe96lZDDFOKaAu022cCmu1eg0YAxKhumDjvqMI4M4VBnTNggo+7PJFYljmYrxQ 5C8+rSTcZIWid0C5jb7QJOldXeJQxJE9KPuwXGouL7eHret9RvH+lLZ6rDedGtEtNarlzB RUGzAVNM86FpqouHgO0MoWWcesFCgNX6tf1cfWurIS0ZI3m391x/UexfFEMMGCocizg5Xw S0aSSW5dgdYO6NVkWVQF4thJaMm6eVOADWYUFriXb+pZd905qdUIPUZWuBJL3KW9KBKX8O 1O/AAEFy/AUC4m+PQ/C5w3rppQzIo1uEcwa0NXyPd9Mr9xdXXddbhzYrHHYTRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=b9soHF12; dmarc=pass (policy=none) header.from=gmail.com; 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.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=b9soHF12; dmarc=pass (policy=none) header.from=gmail.com; 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: B27DE148F4 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: QfO4QQwJDQoC I'm confused about the use of the header-args property. It works as expected when I export a file, but not when I evaluate a code block manually. For example, consider this file:     #+PROPERTY: header-args :var x="Hello" :exports both     #+begin_src shell       echo X is $x     #+end_src When I export, the result of the code block is "X is Hello", but when I use C-c C-c to evaluate the block in emacs, I get "X is"--the variable isn't defined. In practice, this means I generally define things like :session for each block, rather than using a file-level property. Is this behaviour expected?  Kind regards, Mike