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 EOa+Hf+2x2MlgAEAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 10:08:15 +0100 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 aFacHf+2x2NLSAAAauVa8A (envelope-from ) for ; Wed, 18 Jan 2023 10:08:15 +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 DB09D103FC for ; Wed, 18 Jan 2023 10:08:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pI4Pw-0005Lp-4S; Wed, 18 Jan 2023 04:07:36 -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 1pI4Pu-0005Lg-PU for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 04:07:34 -0500 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pI4Pt-0006Px-5j for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 04:07:34 -0500 Received: by mail-pj1-x1029.google.com with SMTP id s13-20020a17090a6e4d00b0022900843652so1690927pjm.1 for ; Wed, 18 Jan 2023 01:07:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=MqQn6Coq8HiT8h8lF1iD0N3OJ0Zb2z6jpEJIkJMK1Kw=; b=UA28CJvVHtC3N/XoxXqkeONaclsjTtoJsBIq5bMUPqm/5VQUNXr9aCGU/pJcvu5nlc b/uLelRk+H9AA5ws1hri72IGUW1Ag+6Zr+lethzKYWST0NpUzw8ZmT2F4AY9DU0S3I13 QgX/b0qhTWzgh3oRLfEJExByFb77T+ElmL1ixMr2lYv87ggUklRFL82CNA5qWZt0+UaX BriOeKsjl59r4ygX596cVc3GjSdTFrxEI7A9Zfva2rmI7PA8kzJe6R9T6I/aGf/wVkHy VgL3TGRmRmdQO0luAgum2k4XvBZ9mzTfzKEN6IBb5ySjdYO5wn7und8LeL1B9YkHdrKY VJiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=MqQn6Coq8HiT8h8lF1iD0N3OJ0Zb2z6jpEJIkJMK1Kw=; b=5Jc2AnM6Xc4Fa2GaUvHP1uKNH7R47BRMY2zQtsOwQiEcNZkGsyKC/uOUGOc+019hMp jzAC4FsdecE4gFls4i/gzdWPliaxDYbOnmPiWEF4ZBJBAUpZTl8JhTUh8VdvqHHB9Bpb aWm2+/NTmsHW3rq2dNqiYQDJpBVZButpje4sUN+Bskw2tIdS3FARaRrYfzkNaoa8XFNf 4CeCCgFu7ELnJd2/DIWM4FIQBnG05Yb40Z+P1zM5Kfadn9sEBfzAzOBt99mnoOXIh0E3 0gTrKyD3tskzHZvvtUC8/xfbW6Hxu58KworIKdQFV0k7pxkk3729bM9ti7uLl10zhAlk Dgnw== X-Gm-Message-State: AFqh2kowaOW0nVsnixsR5xGXs1Y8IKfLcpGMmwM+yuR8lOWTVvbz1Bew PQqtEYTSJGYyWbxFjbpdrd7xyLG3t0A= X-Google-Smtp-Source: AMrXdXvQJzK0DTP0tH30Hl/vnntUgzQP6nfpI/oVIljqD31vj8RtTLz1J80ahxxX9ZOPbUMYOM5NFw== X-Received: by 2002:a17:90b:1206:b0:229:188a:c0e7 with SMTP id gl6-20020a17090b120600b00229188ac0e7mr6198590pjb.49.1674032851307; Wed, 18 Jan 2023 01:07:31 -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 t13-20020a17090a3b4d00b002132f3e71c6sm856093pjf.52.2023.01.18.01.07.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Jan 2023 01:07:30 -0800 (PST) Content-Type: multipart/alternative; boundary="------------sER518zxWs9HCEJ00rkKY43C" Message-ID: <3fd7abab-defd-3ae0-d76c-64b2b7e53dfb@gmail.com> Date: Wed, 18 Jan 2023 17:07:27 +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 To: Ihor Radchenko Cc: emacs-orgmode@gnu.org References: <93b040e1-6dc6-487f-de89-a4cea9a560ff@gmail.com> <87tu0o8e49.fsf@localhost> From: bhrgunatha In-Reply-To: <87tu0o8e49.fsf@localhost> Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=bhrgunatha@gmail.com; helo=mail-pj1-x1029.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674032895; a=rsa-sha256; cv=none; b=ikybmS2BlaUdI/YGZbhd/lC6yMZLxXK0bppDGpHtTK39I9ztklTRS6O/kFtJZVaWzAftZh mb69bH6RMhmsvwUIu1wTfa2CvGD8PyWmEQSM2VtsRCWuQXroV0R3nMChGBVjRvk9LaTwAe zawYiGSh6r0P2KcfOv+CLqvuvBYj/CbQPHY7jlR7vP90LtMUFKMcLVdRZQ/5t/4Da3f+b4 MHnQpn1u5P09y036Zf6EA3RI6Ie/ltwB8wQbSRj1XgkkNRzOY7aUn5vGyFiLtgC+HyG12n 4x6lPx7f+/f1jtaTadHwcYlhTTy8pj92s0mVXpJIIL9Vf1lTf5vGJoxmUK72Yw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UA28CJvV; 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=1674032895; 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=MqQn6Coq8HiT8h8lF1iD0N3OJ0Zb2z6jpEJIkJMK1Kw=; b=E8IiER6Rz7H6NfcmORIfqM+Rhro6TbFhSK0jY5H0r4T7CcEGJhq6XCGGfxP47p2X7NQfYz CjB5xct7GD/QgVyxPRLon4sgloGadGH2j1oQGkyI7nLBdQr9M82CQfHUJ7KSVVYZXDZcHe ty++IWV5xQ6Fe1ckPZ6ppyUMdTtYZj6aeW0cKwrmM/cfajiGojmcYEpFJkYKRajlF9rT4C OMIYjhSFSyw7vZNXSWvTGS5eL5xG+fehnMRlh1r8U4CKTv6UTjVCi071Vd4LHVNgiFIuVY Gxo39caoHsDrSybUjIodslR1Biwr0KUgYlRS5n5XHBS6ZuYK2++zNGanWbZkGA== X-Spam-Score: -6.09 X-Migadu-Queue-Id: DB09D103FC Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UA28CJvV; 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-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.09 X-TUID: roIkngemhG8w This is a multi-part message in MIME format. --------------sER518zxWs9HCEJ00rkKY43C Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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/" --------------sER518zxWs9HCEJ00rkKY43C Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
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/"

--------------sER518zxWs9HCEJ00rkKY43C--