Colin Baxter <m43...@yandex.com> writes:

> I find a file called "gc-lock.eld" has been deposited un-requested and
> un-wanted in ~/.emacs.d/org-persist.
>
> I had thought I had disabled org-persist with the following
>
> --8<---------------cut here---------------start------------->8---
> (setq org-persist-disable-when-emacs-Q t)
> (defun me/advice--org-persist (old-fn &rest args)
>  (let (user-init-file)
>   (apply old-fn args)))
> (advice-add 'org-persist-write :around #'me/advice--org-persist)
> (advice-add 'org-persist-read :around #'me/advice--org-persist)
> (advice-add 'org-persist-gc :around #'me/advice--org-persist)
> --8<---------------cut here---------------end--------------->8---
>
> This had worked fine until today. How do I now stop org-persist
> depositing this - and maybe other -files. I do not want them.

Please note that disabling org-persist is not officially supported and
can be broken any moment. Like it appeared to happen for you after
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5a5ec1b320512f5e97f72668abc13447567fdd35

In future, I may implement some options to, say, set org-persist save
the data alongside with .org file. For now, it is a centralized place.

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

Reply via email to