[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-persist files in /tmp
From: |
Max Nikulin |
Subject: |
Re: org-persist files in /tmp |
Date: |
Thu, 22 Dec 2022 23:07:52 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 22/12/2022 22:45, Tim Cross wrote:
Could some of the issues people are concerned about regarding use of
/tmp be avoided if instead the temporary files were put into ~/.cache?
There is no ~/.cache on Windows, the fallback is ~/.emacs.d. org-persist
files in ~/.emacs.d was the original source of complains. Moreover, I do
not think emacs -q should write to the same places as emacs initialized
in the regular way.
I see a couple of options:
- Remove the directory on exit (taking some care to not prevent quit in
the cases of errors)
- Create the directory lazily. The variable should not be accessed
directly, when some code is going to write a file it should call a
function that creates the directory if it is first call.
Another idea is to avoid caching of parse result for small files.
- org-persist files in /tmp, Fraga, Eric, 2022/12/21
- Re: org-persist files in /tmp, Greg Minshall, 2022/12/21
- Re: org-persist files in /tmp, Ruijie Yu, 2022/12/22
- Re: org-persist files in /tmp, Max Nikulin, 2022/12/22
- Re: org-persist files in /tmp, Tim Cross, 2022/12/22
- Re: org-persist files in /tmp,
Max Nikulin <=
- Re: org-persist files in /tmp, tomas, 2022/12/23
- Re: org-persist files in /tmp, Max Nikulin, 2022/12/23
- Re: org-persist files in /tmp, tomas, 2022/12/23
- Re: org-persist files in /tmp, Ihor Radchenko, 2022/12/25
- Re: org-persist files in /tmp, Ihor Radchenko, 2022/12/25
- Re: org-persist files in /tmp, tomas, 2022/12/25
- Re: org-persist files in /tmp, Ihor Radchenko, 2022/12/25
- Re: org-persist files in /tmp, Ihor Radchenko, 2022/12/25
Re: org-persist files in /tmp, Tim Cross, 2022/12/21