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 mA54CanBx2PQ4wAAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 10:53:45 +0100 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 eN54CKnBx2MFFgAAG6o9tA (envelope-from ) for ; Wed, 18 Jan 2023 10:53:45 +0100 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 CE4DB28978 for ; Wed, 18 Jan 2023 10:53:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pI57z-0007hO-Ap; Wed, 18 Jan 2023 04:53:07 -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 1pI57x-0007bY-0J for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 04:53:05 -0500 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pI57u-0005HQ-Qa for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 04:53:04 -0500 Received: by mail-pl1-x634.google.com with SMTP id y1so36370002plb.2 for ; Wed, 18 Jan 2023 01:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:references:cc:to:from:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=UY2w9GvLdqrocLDkFkNE0NlZtUd+XpFMHX0u3aWCwxE=; b=NwvTTaeB79TJecudHablRMiT3yTV6ygGspmwb1Y4GT0UlaIS/2zu0l4mKlgc1ppOpp nXLp4ekNOUd9bFTn3GT6tSEzReiI4aS/aUnQjhjThBWVig4nF1aRxMxSgndhXXx0sUqr 98uztyqoQaj2UZkkJkyODdVKA/YCnl1eMkq3MCMfT9btEgqM4D+Ml4sXNr+fCNY+x6I/ sB90pawOZZS93IfZ+YGb3aMWk5BRFV7TFSupZFAzVTa3rXSaKiZYEVnkhBAmo9EcRu3K NLLD2KbXDcfW+iJ/E6Ri5iWzOPQb/7eosWi1PaRGxSm3z89cQPZU5k+naEe9rcfE6EZ8 v/qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:cc:to:from:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=UY2w9GvLdqrocLDkFkNE0NlZtUd+XpFMHX0u3aWCwxE=; b=i6OE3z/bC9Y/O5fj+teR3GPdaQy+JM1CzpU/EZmyKPd9rgLF6GIAb044aLbD1o026x slFGDAR0FrVJcYn7nWe8CeLdUVvHf7YtxDXSnv2KLFP6tNhEV//wJkRSyx/qAA9T1iKR J+rkbwqK16ve9zDQlKMIypZFhNDNTWJznBb7ZDiHuNjlVY1XHGrDAvizFoP8b3TjMMH0 eYCEsV2xbKfDLxdIcuQZmYZPzWpY5iKBhyoTzfnm4LPBmp20TFbZgQ/F5axxL3/bKANS 6IM0Cq6gFCnhAZZQt+HZFOw4p8JuZUKBa+AQCrHpm9hyZUvcxPa2RD9GNcDWtfTdsCGs 5EHA== X-Gm-Message-State: AFqh2krFT/Cce6XUpBfAXKZOjdqv9znSCYDUIJN5b5glsMM4AY1PsEl7 umjouG7gSj1pm3LMCBeU5SI= X-Google-Smtp-Source: AMrXdXsJG1tLuKeLnPwhlv3c1l4ONgJ81hmcqs0Nc+YjkdnX399fF47CMDQBKH8sITz/c58ApX/oqA== X-Received: by 2002:a17:90a:4606:b0:226:620b:6ae5 with SMTP id w6-20020a17090a460600b00226620b6ae5mr6267296pjg.22.1674035580917; Wed, 18 Jan 2023 01:53:00 -0800 (PST) Received: from ?IPV6:2001:b011:8005:a0fe:d467:37bd:9c71:9323? (2001-b011-8005-a0fe-d467-37bd-9c71-9323.dynamic-ip6.hinet.net. [2001:b011:8005:a0fe:d467:37bd:9c71:9323]) by smtp.gmail.com with ESMTPSA id rm10-20020a17090b3eca00b00229b00cc8desm1401185pjb.0.2023.01.18.01.52.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Jan 2023 01:53:00 -0800 (PST) Content-Type: multipart/alternative; boundary="------------a72p0SR0cC1P7sD0f7BK3zpo" Message-ID: <4579f9d7-af96-2818-e12d-546040157e28@gmail.com> Date: Wed, 18 Jan 2023 17:52:58 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [BUG] Many babel-stable-nnn fodlers created in folders with org files (instead of in /tmp) [9.6.1 ( @ /home/bhrgunatha/.emacs.d/elpa/org-9.6.1/)] Content-Language: en-GB From: bhrgunatha To: Ihor Radchenko Cc: emacs-orgmode@gnu.org References: <93b040e1-6dc6-487f-de89-a4cea9a560ff@gmail.com> <87tu0o8e49.fsf@localhost> <3fd7abab-defd-3ae0-d76c-64b2b7e53dfb@gmail.com> In-Reply-To: <3fd7abab-defd-3ae0-d76c-64b2b7e53dfb@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=bhrgunatha@gmail.com; helo=mail-pl1-x634.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.097, 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: , 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674035624; 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=UY2w9GvLdqrocLDkFkNE0NlZtUd+XpFMHX0u3aWCwxE=; b=frWGgbVjPsI6RNG+xwPA0MURh0VxSOHlmIshKW5LpkQYZxc3r9wftIOMHT4VvYZktlr/YM XzaHAQ2zFnbbH4707LcmtFS89uqvsp6UTU3UY1VuTYVFBwI6S76ryS7fwhoxmiVoDE1vbg gY3sH0tkV130luTpxUHEy261M8gtG98GQyAr6HDelAWILnXgqJ+cFZWujOs5rBWHzmX5ml WxCJHrVSWO91ltO4/spQMxedxml+2M4S1H/asM4QCxqtz+krG/rLrl01bu6ABnYRl00ONc kJ+AMWGieCfZkytUftkzpGy9SGodgdxDNjy6FMIMXFvW5v1Aob+d10IYD3gK2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NwvTTaeB; 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=1674035624; a=rsa-sha256; cv=none; b=NnINyLWVZfr9ZqbCLwGtky3pcIU1utAnL4spw5eUx6FTqK7Jv94DAsDQPIwLKOCWTAP7Gu uR0noj5IyIHRxdEwTf7LLoceHqesgUDuQMlayUx7McuJpJ6GFAtzWaMnL6Bulnh4KbiErx N0Ha5Nne8u3XkRAJxMIn1g0a0revKvnNRXqDmYMaWV6ejFGJbnAiBv90JcUUAAGA53IxQq HxDNPgv5DxTarhEQi8MT2QL7Xv760D7dUDL3aieMU2L/6qPxQ6FkSMoQzk7fhfV09Mt0iX ehg5/rOX1PfRtPcy+yupJh2qhsL2lTyIEwcrvShsnuC7qmjRKPosFlOhWSPyLg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.79 X-Spam-Score: -4.79 X-Migadu-Queue-Id: CE4DB28978 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NwvTTaeB; 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" X-TUID: sBHdrWUsnx2K This is a multi-part message in MIME format. --------------a72p0SR0cC1P7sD0f7BK3zpo Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit It works for me! Thank you for fixing this and so quickly too! It's much appreciated. bhrgunatha On 18/01/2023 17:07, bhrgunatha wrote: > On 18/01/2023 16:02, Ihor Radchenko wrote: >> bhrgunatha writes: >> >>> Open emacs. >>> Open some .org file with src blocks in some folder /some.org >>> Notice a new folder called babel-stable-nnn (some randome 3 digit >>> number) appears in the folder containing the .org file. >>> >>> I think these should be created in my /tmp/ folder, not the folder >>> containing the .org file. >>> >>> Sometimes they ARE created in my /tmp/ folder. >> Thanks for reporting! >> >> Could you open one of the folders where babel-stable-nnn directories are >> present and then run M-: (temporary-file-directory) ? >> Is the printed output "/tmp"? Something else? >> > Thanks for responding Ihor. > > Opening e.g. "/mnt/data/src/learning/zig/zig_notes.org" > In the buffer visiting zig_notes.org: > M-: (temporary-file-directory) - > "/mnt/data/src/learning/zig/" > The variable though: > temporary-file-directory - > "/tmp/" > > Looking at that function and from the same buffer I also checked: > default-directory - > "/mnt/data/src/learning/zig/" > mounted-file-systems - > "^\\(?:/\\(?:afs/\\|m\\(?:edia/\\|nt\\)\\|\\(?:ne\\|tmp_mn\\)t/\\)\\)" > (find-file-name-handler default-directory 'temporary-file-directory) - > 0 > > I wondered about a buffer not visiting a file. In my default *scratch* > buffer I get: > (temporary-file-directory) - > "/tmp/" > temporary-file-directory - > "/tmp/" > mounted-file-systems - > "^\\(?:/\\(?:afs/\\|m\\(?:edia/\\|nt\\)\\|\\(?:ne\\|tmp_mn\\)t/\\)\\)" > (find-file-name-handler default-directory 'temporary-file-directory) - > nil > > The same in some *help* buffer though _except_: > (temporary-file-directory) - > "/mnt/data/src/learning/zig/" > --------------a72p0SR0cC1P7sD0f7BK3zpo Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

It works for me! 

Thank you for fixing this and so quickly too! It's much appreciated.

bhrgunatha


On 18/01/2023 17:07, bhrgunatha wrote:
On 18/01/2023 16:02, Ihor Radchenko wrote:
bhrgunatha <bhrgunatha@gmail.com> writes:

Open emacs.
Open some .org file with src blocks in some folder <path to file>/some.org
Notice a new folder called babel-stable-nnn (some randome 3 digit
number) appears in the folder containing the .org file.

I think these should be created in my /tmp/ folder, not the folder
containing the .org file.

Sometimes they ARE created in my /tmp/ folder.
Thanks for reporting!

Could you open one of the folders where babel-stable-nnn directories are
present and then run M-: (temporary-file-directory) ?
Is the printed output "/tmp"? Something else?

Thanks for responding Ihor.

Opening e.g. "/mnt/data/src/learning/zig/zig_notes.org"
In the buffer visiting zig_notes.org:
M-: (temporary-file-directory) -
"/mnt/data/src/learning/zig/"
The variable though:
temporary-file-directory -
"/tmp/"

Looking at that function and from the same buffer I also checked:
default-directory -
"/mnt/data/src/learning/zig/"
mounted-file-systems -
"^\\(?:/\\(?:afs/\\|m\\(?:edia/\\|nt\\)\\|\\(?:ne\\|tmp_mn\\)t/\\)\\)"
(find-file-name-handler default-directory 'temporary-file-directory) -
0

I wondered about a buffer not visiting a file. In my default *scratch* buffer I get:
(temporary-file-directory) -
"/tmp/"
temporary-file-directory -
"/tmp/"
mounted-file-systems -
"^\\(?:/\\(?:afs/\\|m\\(?:edia/\\|nt\\)\\|\\(?:ne\\|tmp_mn\\)t/\\)\\)"
(find-file-name-handler default-directory 'temporary-file-directory) -
nil

The same in some *help* buffer though _except_:
(temporary-file-directory) -
"/mnt/data/src/learning/zig/"

--------------a72p0SR0cC1P7sD0f7BK3zpo--