From: <tomas@tuxteam.de>
To: emacs-orgmode@gnu.org
Subject: Re: How to disable completely org-persist
Date: Fri, 30 Dec 2022 13:38:18 +0100 [thread overview]
Message-ID: <Y67buqNX23XhpF6w@tuxteam.de> (raw)
In-Reply-To: <995663126.97424.1672402272044@mail1.libero.it>
[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2022-12-30 12:47 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-03 0:19 How to disable completely org-persist Angelo Graziosi
2022-12-03 6:05 ` tomas
2022-12-04 8:25 ` Colin Baxter
2022-12-04 3:33 ` Ihor Radchenko
2022-12-04 11:57 ` Colin Baxter
2022-12-13 13:02 ` Ihor Radchenko
2022-12-15 8:10 ` Ihor Radchenko
2022-12-17 9:52 ` Ihor Radchenko
2022-12-04 9:27 ` Angelo Graziosi
2022-12-04 4:34 ` Ihor Radchenko
2022-12-05 15:47 ` Angelo Graziosi
2022-12-05 17:58 ` Colin Baxter
2022-12-30 12:11 ` Angelo Graziosi
2022-12-30 12:38 ` tomas [this message]
2022-12-30 13:35 ` Ihor Radchenko
2022-12-30 13:39 ` tomas
2022-12-30 14:18 ` Ihor Radchenko
2022-12-30 13:04 ` Angelo Graziosi
2022-12-30 17:42 ` Colin Baxter
2022-12-31 1:29 ` Angelo Graziosi
2022-12-31 6:06 ` Ihor Radchenko
2022-12-31 7:10 ` tomas
2023-01-01 13:42 ` Jean Louis
2022-12-31 17:01 ` Angelo Graziosi
2022-12-04 9:32 ` Angelo Graziosi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y67buqNX23XhpF6w@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).