Ihor Radchenko <yanta...@posteo.net> writes: > Upon further investigation, it looks like we need Org persist all the > time. As temporary storage, at least. In particular, downloading remote > images requires org-persist to store files somewhere. All the times. > ... > So, we cannot disable org-persist and should not even do it with Emacs > -Q. Instead, we may redirect org-persist-directory to /tmp in some > scenarios. I will look into doing this soon.
I am going to do the following in order to reduce the issue with littering `user-emacs-directory': 1. When there is no data stored by org-persist (e.g. when the user disabled `org-element-cache-persistent' and never uses image downloading), do not write anything and do not create the empty index. 2. `org-persist-disable-when-emacs-Q' will redirect `org-persist-directory' to a temporary directory. (this is a bugfix) 3. Users who think that org-persist is still on the way may set `org-persist-directory' explicitly to, say, `temporary-file-directory'. Let me know if there are any objections. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>