It works for me!
Thank you for fixing this and so quickly too! It's much appreciated.
bhrgunatha
On 18/01/2023 16:02, Ihor Radchenko wrote:
Thanks for responding Ihor.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?
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/"