emacs-orgmode
[Top][All Lists]
Advanced

[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.




reply via email to

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