emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Many babel-stable-nnn fodlers created in folders with org file


From: bhrgunatha
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:52:58 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1

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/"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]