Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
This is a copy of emacs bug#79150
Hello,
I thought I have desactived org-persist for good by advicing
org-persist-register
but things have changed again and even with this org-persist continue to
create a directory in ~/.cache/. So I deleted this directory, then I
restarted emacs and try to set org-directory to nil which is not allowed
apparently. I restarted emacs again and had an error something like
wrong-type-argument nil (for org-directory I imagine) and a y-or-n-p to
continue or not, I said yes, emacs restarted but all my config files had
been deleted, init.el, early-init, gnus etc... hopefully all these files
are under git and I restored all. I finally found how to disable this
org-persist annoyance by advicing a bunch of functions to 'ignore and
disabling some hooks.
IIRC this have been already reported and requested in the past to
provide an easy way to disable this evil thing, but it seems it is
always here, thus now it may corrupt elisp files unrelated to org.
Emacs : GNU Emacs 30.1 (build 6, x86_64-pc-linux-gnu, X toolkit, cairo version
1.16.0, Xaw3d scroll bars)
of 2025-05-29
Package: Org mode version 9.7.11 (release_9.7.11 @
/usr/local/share/emacs/30.1/lisp/org/)
--
Thierry