On Fri, Dec 30, 2022 at 01:11:12PM +0100, Angelo Graziosi wrote: > > Il 05/12/2022 18:58 Colin Baxter ha scritto: > > > > > > >>>>> Angelo Graziosi writes: > > > > > Colin Baxter wrote: > > >> I too would like a means to disable org-persist. > > > > > On emacs-devel there was this suggestion: > > > > > https://lists.gnu.org/archive/html/emacs-devel/2022-12/msg00125.html > > > > It appears to work, after removing a couple of surplus brackets from the > > end of the last line. > > After the last Emacs master build, the what suggested there, i.e. > > ;; As suggested here: > ;; https://lists.gnu.org/archive/html/emacs-devel/2022-12/msg00125.html > (setq org-persist-disable-when-emacs-Q t) > > (defun tv/advice--org-persist (old-fn &rest args) > (let (user-init-file) > (apply old-fn args))) > > (advice-add 'org-persist-write :around #'tv/advice--org-persist) > (advice-add 'org-persist-read :around #'tv/advice--org-persist) > (advice-add 'org-persist-gc :around #'tv/advice--org-persist) > > does not work any more: that directory is recreated even with that cod in the init.el > > Someone knows how to avoid that? AFAIK there is now a defvar `org-element-cache-persistent'. Maybe it works for you? Cheers -- t