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