From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KNVxBF4qVmMFIwEAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 08:02:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id VLGAA14qVmMHKgEAG6o9tA (envelope-from ) for ; Mon, 24 Oct 2022 08:02:06 +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 D1CFC3ABED for ; Mon, 24 Oct 2022 08:02:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omhxk-0004dl-8m for larch@yhetil.org; Sun, 23 Oct 2022 16:52:52 -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 1omGQ6-0000kI-IY for emacs-orgmode@gnu.org; Sat, 22 Oct 2022 11:28:18 -0400 Received: from pie.tf ([5.45.99.52]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1omGQ5-0007Y6-4B for emacs-orgmode@gnu.org; Sat, 22 Oct 2022 11:28:18 -0400 Received: from i3ed6f389.versanet.de ([62.214.243.137] helo=localhost) by pie.tf with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1omGPv-0001CJ-6n; Sat, 22 Oct 2022 15:28:07 +0000 From: Ferdinand Pieper To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Possible bugs in org-babel-temp-stable-file (was: [PATCH] Add light argument to org-babel-lob-get-info) References: <877d109d3k.fsf@ims.uni-hannover.de> <87bkqaizns.fsf@localhost> <87wn8xds64.fsf@ims.uni-hannover.de> <874jw0cn5c.fsf@localhost> Date: Sat, 22 Oct 2022 17:28:01 +0200 In-Reply-To: <874jw0cn5c.fsf@localhost> (Ihor Radchenko's message of "Wed, 19 Oct 2022 07:01:35 +0000") Message-ID: <87r0yz7u9q.fsf_-_@pie.tf> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=5.45.99.52; envelope-from=fer@pie.tf; helo=pie.tf X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1666591325; 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; bh=2srZnoNshEGNcLKyGHtasVawsfX+Lz5r4MfC6HnpJDs=; b=Yl5Ut9aFuU7KYRoRXcgYeNd9edPV7wVZg99x+TW38uSVePaTRSt9CdRGhFxjqUcbs8mS/q t0lAU08X+ed1GwVnE0/ikv6HQv8jMQZFtbkLTPnciBpCrOy0+gMBIhOknDp4So9UGt9+k4 lxH5Q82hx47sPJbt1i3pGhwbX4qyVrQKNOKW5XCnwMlZ9f8G3cem/GD1N08UhG/HXyDfVt y3zdhWYrW6jqO6UpJEv30T+dF5a7qDs4QP7qYr9QIOw8r+7EKTxHSocWsn742kL+uyyPBC cWzzPif2oo6n+0bburLVH4ksrYEuggjAigMvcpzGPJvS80bAO5sQ8FXiCyvNuw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666591325; a=rsa-sha256; cv=none; b=K6HtYxrp7LbWgYZuBUp9nXZgXyoiXg1+mh4gLRa+EaWLkVRzIIzoZSu84HiNv5cMeW6H9P rpGJdeyzlYEWzpDAMELzuzAV/TCpx0hAEcJCTfXA1c5xf86vS0BR8hTLzl0ZBdN7UBeATJ OOiVoJpgTHH8tqlKLMvb0rqTBfau16iA8nkpm6kcWq3IPDw0KuUdatV0D2Y+o/cipyctR9 dRsJ8YvOHHKsu3VbUk80smxTjU+C9YYxuRKvpTsvfYtQy6tYhXwOQFzT+CLHSokukCtmDW kNWaXCqGZKIdt/+4tOQR3ZB21VWhSscNeezyj83LxtjMTvBOuv2ByFUsSlocxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -1.50 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: D1CFC3ABED X-Spam-Score: -1.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: eQPajxlZUrJZ Ihor Radchenko writes: > Applied onto main. Thanks > Have you seen org-babel-temp-stable-file? I have not. Seems really useful, thanks for mentioning. I wrote my functions before org-babel-temp-stable-file was added, but seems I can simplify them now quite a bit. I noticed two possible bugs in org-babel-temp-stable-file: 1. Prefix could be an empty string and that would break the filename extension, because (expand-file-name "" org-babel-temporary-stable-directory) would not add a slash in the path. 2. The org-babel-temporary-stable-directory is only created upon initial loading. But the intended behavior for remote paths seems to be to create the temp files on the remote. Which will fail, because org-babel-temporary-stable-directory does not exist on the remote. However creating the directories on remotes of course makes cleanup harder to impossible, if the remotes are not accessible any more. I can try to write a patch for both, but I do not fully understand the org-babel-temp-stable-file code. It seems with the use of with-temp-file there is no need to change temporary-file-directory anymore? 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. Best,