From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EJ7dBUw1VmNzPwAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 08:48:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2OHvBUw1VmMxTAEAauVa8A (envelope-from ) for ; Mon, 24 Oct 2022 08:48:44 +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 B1C672CBA9 for ; Mon, 24 Oct 2022 08:48:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omopy-0002D8-La; Mon, 24 Oct 2022 00:13:18 -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 1omopO-0001xd-I4 for emacs-orgmode@gnu.org; Mon, 24 Oct 2022 00:12:47 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omop1-0004py-3j for emacs-orgmode@gnu.org; Mon, 24 Oct 2022 00:12:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C3315240028 for ; Mon, 24 Oct 2022 06:12:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666584736; bh=iP/bQvZx6tXDtPXPGTpJ6NAnYIYuMIGRH7vmZLUDwIA=; h=From:To:Cc:Subject:Date:From; b=p3sYhu1X/MCgcXnjm1o4rd9OxR4sia/dWJaK5ST5bOgfKXIbQqny/ORjYQ0idU2jQ /jQTFtJ9K/xborPrln/7gD3EXG2T5psjKSyAdZFEVfwQdgS0K9ZB+c2Ghkg+GedX1/ 5ZFH1jS494DyTaR1wuC2WbAlkLioLzfcKY4+D20eUE+Zhdff61JkdZCdP6qs9C5UTv likSk/Wky6qhBl/An9OeIqSUh4qTrC1N/69QISK2u28UPRxGONnhnNP259lysj+M76 wOxfRnUL6XC5eHpuVNJzqGVGIoZEnOVO09rrm25Bs3kl8ZRQL+EvjrYaU+n9xc3uUb 7f5bflXFYpXqw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MwhVN5myYz9rxP; Mon, 24 Oct 2022 06:12:12 +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: <87h6zu7pak.fsf@pie.tf> 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> Date: Mon, 24 Oct 2022 04:12:56 +0000 Message-ID: <875yg9rh9z.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, 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=1666594123; 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=PNXD/7AxOXCB2rRDutUXRlHcJ8m8BGQWBR+nDn8QfkU=; b=imPiZRy04V+vfyvrGqcpRPfXRnMqdOo1TD1mPtKENoyUhMCSEyDh33K5PGvRkLtJXxqpJr SmRkO7KD6Y8XLat8tE6jyyLgLzP74wqaIQyM+tcG78hlYJ2Ws5d9Q/qwRrN1/FYNd4haJs NtabGltXxjeD5XFXnvEIQZrIwwr19K3axxMv3+rcZpIRSqXanK1d3BdxnBf2W1SJgixqwP TJp1cAFGyXvDxl8S7iuBt3N3zh5hhTVGCltUsMihRn+azBGu+PNP86vHokyhHQN+uqK4tf YXKvJkamXbCqRTrQ84lCSYc05p3bVU5SNMSkjwKvgoopmosLg+/BsMZJrwkWMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666594123; a=rsa-sha256; cv=none; b=Dv6ZCkoPKWrJsdF7BAdR6NUE0E/VFIJPmYy0OpjO8hMQjt4wartg/cyNvGEYBlwMiUKWIZ MU52GsRbrw5bxujvPN0qUbg/iPpLDxykQHnJrKdAu+rUFOagEYLLrSEbZl5bcYChKycHGA yOARrBQbjiMLZQux8f2Ul/Mq0eKyRLJlNcf34Qav0XaKokqZosgXDKIZ5EXgu4YFX/ch7M T8NSnP48i/OFGxt30L2vOx39C62Be75no0jOph/NiLzaDYpex4e+HZ1fD0aSLbW0hLtLCg YIcJijzkcdvShznqCHyZMXCj6WHOPvtryCYKHDxqJ+Nclv/eD4hCNOTcQcy9gw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=p3sYhu1X; 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: -3.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=p3sYhu1X; 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: B1C672CBA9 X-Spam-Score: -3.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: C0TkW/ryw/Mc Ferdinand Pieper writes: >>> It could also be nice to add an extra argument to force the use of >>> the local org-babel-temporary-stable-directory for remote files. >> >> I am not sure if it is a good idea. >> On remote files, default-directory often points to the remote making >> `shell-command' and similar run code on remote machine. It may not work >> well with local temporary directory. > > I think you are right. Something like this could only be relevant for local files which execute code on remote locations (e.g. babel via the :dir argument) and require remote temp files instead of local ones. But that seems like too much of an edge case to support. If necessary a user could easily solve it with a small wrapper, that sets default-directory accordingly. 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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at