[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to disable completely org-persist
From: |
tomas |
Subject: |
Re: How to disable completely org-persist |
Date: |
Fri, 30 Dec 2022 13:38:18 +0100 |
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
signature.asc
Description: PGP signature
- Re: How to disable completely org-persist, (continued)
Re: How to disable completely org-persist, Angelo Graziosi, 2022/12/04
- Re: How to disable completely org-persist, Angelo Graziosi, 2022/12/04
- Re: How to disable completely org-persist, Ihor Radchenko, 2022/12/04
- Re: How to disable completely org-persist, Angelo Graziosi, 2022/12/05
- Re: How to disable completely org-persist, Colin Baxter, 2022/12/05
- Re: How to disable completely org-persist, Angelo Graziosi, 2022/12/30
- Re: How to disable completely org-persist,
tomas <=
- Re: How to disable completely org-persist, Ihor Radchenko, 2022/12/30
- Re: How to disable completely org-persist, tomas, 2022/12/30
- Re: How to disable completely org-persist, Ihor Radchenko, 2022/12/30
Re: How to disable completely org-persist, Angelo Graziosi, 2022/12/30
Re: How to disable completely org-persist, Colin Baxter, 2022/12/30
Re: How to disable completely org-persist, Angelo Graziosi, 2022/12/30
Re: How to disable completely org-persist, Ihor Radchenko, 2022/12/31
Re: How to disable completely org-persist, tomas, 2022/12/31
Re: How to disable completely org-persist, Angelo Graziosi, 2022/12/31