From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2FEHBuNWVmNwMwAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 11:12:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QIIKBuNWVmOrIAEAauVa8A (envelope-from ) for ; Mon, 24 Oct 2022 11:12:03 +0200 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 9F9993CDED for ; Mon, 24 Oct 2022 11:12:02 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omsk8-0007Ls-OV; Mon, 24 Oct 2022 04:23:32 -0400 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 1omsk7-0007Lj-Ls for emacs-orgmode@gnu.org; Mon, 24 Oct 2022 04:23:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omsk4-0007iX-Bj for emacs-orgmode@gnu.org; Mon, 24 Oct 2022 04:23:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 32D29240108 for ; Mon, 24 Oct 2022 10:23:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666599806; bh=oqGWKN4LjNtza0UvIci1WpEMPPhYhjQWQgVlxIHSKi8=; h=From:To:Cc:Subject:Date:From; b=Wqc0cQu4lz8Xw/izLKRrsoi2u9IGSyLp1dbxNQPP2XeX42GBvOycIYTqk+ORymJ8V xFovWlAcicJfCfhD19ExMCEhEYVdD3g9tMUG7hypDNXjF+4HzN7XvMorzKZVJjJWse gaWr4Csez70DM8e0PGZD3fD4CnLQLIiWItt89aMEl4TMubvv4FBQsi4qxqqjYslo59 gTtZo05J+rEiXUhxy4Z8W8GNXr3045+Hm6llVMU7y7DHJZk/qELG/a2PhrBUCDSqqX miEnPd+kKKfo/Z5HRSE+w2KZrZ7+hdNrnJChqKaFv1mKoIBaIVSaAm2yOtgx7DlXt1 UKDIMcGmKxn0w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mwp4F00Ltz6tqF; Mon, 24 Oct 2022 10:23:24 +0200 (CEST) From: Ihor Radchenko To: Ferdinand Pieper Cc: emacs-orgmode@gnu.org Subject: Re: Possible bugs in org-babel-temp-stable-file In-Reply-To: <87r0yxek4a.fsf@ims.uni-hannover.de> References: <877d109d3k.fsf@ims.uni-hannover.de> <87bkqaizns.fsf@localhost> <87wn8xds64.fsf@ims.uni-hannover.de> <874jw0cn5c.fsf@localhost> <87r0yz7u9q.fsf_-_@pie.tf> <87ilkbqjbs.fsf@localhost> <87h6zu7pak.fsf@pie.tf> <875yg9rh9z.fsf@localhost> <87r0yxek4a.fsf@ims.uni-hannover.de> Date: Mon, 24 Oct 2022 08:24:08 +0000 Message-ID: <87mt9lpr2v.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666602722; 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=DXwnqaD3S2xyfUeJv/8xyJp98nhHC7KU3M5NTNBiPVc=; b=Bb//Y4I0IIPlR0tcCIyPMeOr9xOIFrrYs1WIDVoKERJBky5C/lWzgqnseyLRJHp1TKFdzt JFrDY4RObfABsOEyBykjLRU6Ccq7Z8rlP5Ae0p1bHCCrOm9HiI4zqc0tesvLhvRJ3M0nuz MDiCS035gAHVgeW0gve3lzzxa9Io4ydMAkedGItnei4zPYpWUbU7lcKota7cWKeaDGEqpI LKBD+fZoUhRBiLtpXswKyNZ5WJS3jPEki6R8l33Z1smoFaqmVz8Hegk8k69lMgDzh0dAQL JwSk6pspW2jCX2cElLeTOGcDha1BwJCuwoA3Xwc8p/hwbQRzGaTcat5fVguG2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666602722; a=rsa-sha256; cv=none; b=rb3TzyNgyhkd9dLNRwxiFY6610v8FsSGOspLjAbxS1iMWQ711DKQ7/mmDgISmRT3XkAx0m 3AOb+4mnTxKbdxkRaKvO9lTALfa8peAeDNUBt2gybvCxhnNTOv8lQIDOAo867Xu+xAmdRa ZC5ytVGa1Bna/JqshzuN45xun7p2MAwO/UIdooIA9gmQCRH6os/Zb0elARkZ3HbghOTHuI QG+39qiebrZQBgioV+T5O3zeuboBIMAZma28uUg0mBf8rx604bBDdD74yX6p2Ff3j8XPLv 58Hd/dFEuivrxSHdNpQkbLKTooLz9jI4gEf25Ik6SkUeD8qMrIoZIZQCwGbxOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Wqc0cQu4; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -7.70 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Wqc0cQu4; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: 9F9993CDED X-Spam-Score: -7.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: AQCrAUfy/CTP Ferdinand Pieper writes: > Ihor Radchenko writes: > >> When you have :dir argument in a source block, default-directory is set >> to :dir value during execution. This affects the location of temporary >> files as well. > > Yes, but not for header argument evaluation (which I think is reasonable). > An example of what I meant: > > --8<---------------cut here---------------start------------->8--- > #+begin_src shell :dir /ssh:remote: :var file=(org-babel-temp-stable-file (org-babel-get-src-block-info t) "") > echo hello world > $file > #+end_src > --8<---------------cut here---------------end--------------->8--- Sure. I believe that we do not need to change anything wrt this example. Though maybe explain a bit in documentation? Patches welcome! -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at