From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id EIOiGhiVvWVhagAA62LTzQ:P1 (envelope-from ) for ; Sat, 03 Feb 2024 02:21:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EIOiGhiVvWVhagAA62LTzQ (envelope-from ) for ; Sat, 03 Feb 2024 02:21:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=kZz30PCb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706923288; 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=bb68wPPe1V3yolO8fIuJAGViLnrxZiciG2FXXqb5vdQ=; b=UTSHduerMX1AGPfetaeG4rBicXT4nClh6eZI7kMh9mf+StYzRVUkcc/XU8cHbG28Ge+uJu O2uguO/a8GfKhHd/NzLCd7nIsGbefQgPwtRYQGi6tmWr6Cwc6GVYLqtNaDguvESbVzi8v9 lS6dt1/wbxh5fQZ65n9r7hKUM+NKoRj6riozThRoRxM7fcRZvU8amut2DP5USqemYBxy9o fp368Ao4jkY6U7xp3dhPFBz6vg8SwAwZ0SNEDVql3zLqiLwtMrn5gDLL89DHfo4AF/0o5f VkLmwk9YpDO0ipCV3zm51xsQ7kjgPevgJXnWI2e9kVKrvRDtEHYzrPukAdKfHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=kZz30PCb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706923288; a=rsa-sha256; cv=none; b=VM4IWGMkRouLJNjXcft0ANMZhbMkGd/xV/fy+RPcYk0dGD2RiSNQn7kEHOQCfd8Hq40U7a kl0xjJ06PKdEAdhdZRDvE6w/FLtAhArexKSgK7kQIaPw3T//k+dTq6k3lUF+ktn1lOcnxd JtalbEgEx48uqC6TH9h2m2sHrlgFjPHt/6H63rjnpehz6YtrlbEUbuGPo0FhPWPHQpAOW/ 1m8fc0Fo2MyB2wjiYtStJ2KBpHYS5gsBz03yGISrO7yYq+wRP7EqKaQXsKJXLOA5ZEp7PI v3shDTvtwk8S5EAwc6fKhpbDQV9HO/B90XP3H83p1ozrxsPJII2/ycR1ee5V4w== 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 065C831830 for ; Sat, 3 Feb 2024 02:21:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rW4hs-00075G-K8; Fri, 02 Feb 2024 20:20:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rW4hq-00074p-P5 for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 20:20:30 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rW4hp-0001gu-EH for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 20:20:30 -0500 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1d95d67ff45so16581805ad.2 for ; Fri, 02 Feb 2024 17:20:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706923228; x=1707528028; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=bb68wPPe1V3yolO8fIuJAGViLnrxZiciG2FXXqb5vdQ=; b=kZz30PCbXwH28dGdRMiiJRY3lcrB2IrVfgpxFR/EnssCEfn7haVXj8ASC8wKhvYrDF oXkBphuWvWfSuNofulIluUPAl34TBNXgdi9HICBs4tWZbJKkOapSdKfylSQsz76Os7w+ z8+EC67My40GnYwG9HirqrzTegOl+roYiDxTfWsi2BPC9eSCm4j47Y2oZSmiPu2NXuM7 pJM73I3LHlim7QHJH6G7Q2pW8IVaWleSkFAiGvfgrc/qjyNID624YRgV86CdWkt65yGs naJc1gq8+ePJEs6fz2pUH4QBNB+UF963tjljsNjU+QF7mCNZNdXtGy65WboQOysUDcJc ERoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706923228; x=1707528028; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bb68wPPe1V3yolO8fIuJAGViLnrxZiciG2FXXqb5vdQ=; b=Je/yjDmz6L03f7BJILxEyedT1ZheeTQIa39SkmxJl1pwXqqUXIlOZmyqD+iY+/3DMW e0IiLRK+J/J9pTF2W++CVIuJQ9hDRH+cXSPmn7iRAw0mda/o2s0wrisZ9FvyPwqeVNq4 zSMwPyFCd29AmQ/dNVElX903KCvhv3AtNkauGQWVruUSaFYaDAdYn1KUey/O3Uiam705 vLCDkilrwPNWD2A4XtAcTu/Mhl33BE4pSS97qxzx2ukhRJgeNltZenI/Pk6TIAZ+V7co ohWvF1kgzGrPyreRo3th0rufQs1jBxHipBeTtS1XRQMYK95v8J+nL3HlSCgE5w3jX49X RFmA== X-Gm-Message-State: AOJu0YwvVPZPhQ+kd/9oK53uiVJw6Tq7TTIEgDiQYETHfiQY59vmXKk5 Ai/Oovx6ZfYek1xeZbtSoKIMwxdxcfiZfpnnKn+SP3ZYxMm7popBZnaXIoVS X-Google-Smtp-Source: AGHT+IG8cnKU8CpSqJZ+HFgRtmHcIdQKcBC1paQUbgwOT8S2+ZLzGLGXLtKaTE1xkQeUiFIHpzrhKQ== X-Received: by 2002:a17:902:6e10:b0:1d8:d599:c014 with SMTP id u16-20020a1709026e1000b001d8d599c014mr3031149plk.50.1706923227746; Fri, 02 Feb 2024 17:20:27 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXcomDXXXgDGrv2HPweKkZe3UdVSZM9dk0ZbDfcZHr2petLDvFu6bjDJR2XPRsOJbNveqIqDOyYEDtFerKCaZaXGy5DdtU= Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id je5-20020a170903264500b001d8a80cbb15sm2196303plb.238.2024.02.02.17.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 17:20:26 -0800 (PST) From: Jack Kamm To: Ihor Radchenko Cc: Nasser Alkmim , emacs-orgmode@gnu.org Subject: Re: Async Python src block behavior with :dir header property In-Reply-To: <87msskmm47.fsf@localhost> References: <87il3a55bg.fsf@gmail.com> <8734udvjai.fsf@localhost> <86plxhely9.fsf@gmail.com> <8734udoejo.fsf@localhost> <86y1c5cztv.fsf@gmail.com> <875xz9o4nj.fsf@localhost> <87plxg95u4.fsf@gmail.com> <87msskmm47.fsf@localhost> Date: Fri, 02 Feb 2024 17:20:25 -0800 Message-ID: <87mssi8ht2.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::629; envelope-from=jackkamm@gmail.com; helo=mail-pl1-x629.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.65 X-Spam-Score: -5.65 X-Migadu-Queue-Id: 065C831830 X-Migadu-Scanner: mx12.migadu.com X-TUID: kXGJNNzSKOue Ihor Radchenko writes: > The patch generally looks reasonable, although I am slightly concerned > about interaction between :dir and session we describe in the manual: > > When =E2=80=98dir=E2=80=99 is used with =E2=80=98session=E2=80=99, Or= g sets the starting directory > for a new session. But Org does not alter the directory of an already > existing session. I agree it's a problem -- if there are multiple blocks with the same session but different ":dir" arguments, then a ":file" result of the second block will be relative to the wrong :dir. This seems like a longstanding problem, and affects both async and non-async session blocks. Ideally, ":dir" should be set at session level rather than block level. This could be done via PROPERTY if there is only one session in the file or subtree, but there isn't a mechanism for this more generally. Perhaps the simplest solution is to add a check to org-lint, requiring all blocks with the same session to have the same :dir.