From: bhrgunatha <bhrgunatha@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
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/)]
Date: Wed, 18 Jan 2023 17:07:27 +0800 [thread overview]
Message-ID: <3fd7abab-defd-3ae0-d76c-64b2b7e53dfb@gmail.com> (raw)
In-Reply-To: <87tu0o8e49.fsf@localhost>
[-- Attachment #1: Type: text/plain, Size: 1634 bytes --]
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/"
[-- Attachment #2: Type: text/html, Size: 2405 bytes --]
next prev parent reply other threads:[~2023-01-18 9:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-15 12:55 [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/)] bhrgunatha
2023-01-18 8:02 ` Ihor Radchenko
2023-01-18 9:07 ` bhrgunatha [this message]
2023-01-18 9:20 ` Ihor Radchenko
2023-01-18 9:52 ` bhrgunatha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3fd7abab-defd-3ae0-d76c-64b2b7e53dfb@gmail.com \
--to=bhrgunatha@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).