* About the new directory org-persist in .emacs.d
@ 2022-12-02 21:09 Angelo Graziosi
2022-12-02 21:48 ` Juanma Barranquero
0 siblings, 1 reply; 21+ messages in thread
From: Angelo Graziosi @ 2022-12-02 21:09 UTC (permalink / raw)
To: emacs-devel@gnu.org
After the last build from master I found this `org-persist` in `.emacs.d`..
Really we need that directory? Which is its usefulness?
So far editing `ORG` docs worked fine also without that folder, I don't notice any difference since it showed up in my `.emacs.d` folder, and I would be grateful if I can avoid its creation.. How?
TIA,
Angelo.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-02 21:09 About the new directory org-persist in .emacs.d Angelo Graziosi
@ 2022-12-02 21:48 ` Juanma Barranquero
2022-12-02 23:26 ` Angelo Graziosi
2022-12-03 0:06 ` Stefan Monnier
0 siblings, 2 replies; 21+ messages in thread
From: Juanma Barranquero @ 2022-12-02 21:48 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: emacs-devel@gnu.org
[-- Attachment #1: Type: text/plain, Size: 231 bytes --]
Perhaps etc/ORG-NEWS would help:
*** Element cache persists across Emacs sessions
The cache state is saved between Emacs sessions. Enabled by default.
The cache persistence can be controlled via
~org-element-cache-persistent~.
[-- Attachment #2: Type: text/html, Size: 350 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-02 21:48 ` Juanma Barranquero
@ 2022-12-02 23:26 ` Angelo Graziosi
2022-12-02 23:52 ` Juanma Barranquero
` (3 more replies)
2022-12-03 0:06 ` Stefan Monnier
1 sibling, 4 replies; 21+ messages in thread
From: Angelo Graziosi @ 2022-12-02 23:26 UTC (permalink / raw)
To: Juanma Barranquero; +Cc: emacs-devel@gnu.org
> Il 02/12/2022 22:48 Juanma Barranquero ha scritto:
>
>
> Perhaps etc/ORG-NEWS would help:
>
> *** Element cache persists across Emacs sessions
>
> The cache state is saved between Emacs sessions. Enabled by default.
>
> The cache persistence can be controlled via
> ~org-element-cache-persistent~.
Ok. I removed that folder (`rm`) then added
(setq org-element-cache-persistent nil)
to my init.el file.. and it is recreated!
So, How I can disable the creation of that garbage from my .emacs.d directory?
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-02 23:26 ` Angelo Graziosi
@ 2022-12-02 23:52 ` Juanma Barranquero
2022-12-03 7:10 ` Eli Zaretskii
2022-12-03 0:01 ` Angelo Graziosi
` (2 subsequent siblings)
3 siblings, 1 reply; 21+ messages in thread
From: Juanma Barranquero @ 2022-12-02 23:52 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: emacs-devel@gnu.org
[-- Attachment #1: Type: text/plain, Size: 278 bytes --]
I don't really know, but I'd suggest looking at the documentation and the
code.
Customizable variables that could be related: `org-persist-directory',
`org-persist-remote-files', `org-persist-default-expiry'.
If that doesn't help, I'd recommend asking in Org-specific forums.
[-- Attachment #2: Type: text/html, Size: 410 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-02 23:26 ` Angelo Graziosi
2022-12-02 23:52 ` Juanma Barranquero
@ 2022-12-03 0:01 ` Angelo Graziosi
2022-12-03 0:13 ` Stefan Monnier
2022-12-03 8:01 ` Björn Bidar
2022-12-05 5:59 ` Thierry Volpiatto
3 siblings, 1 reply; 21+ messages in thread
From: Angelo Graziosi @ 2022-12-03 0:01 UTC (permalink / raw)
To: Juanma Barranquero; +Cc: emacs-devel@gnu.org
> Il 03/12/2022 00:26 Angelo Graziosi ha scritto:
>
>
> > Il 02/12/2022 22:48 Juanma Barranquero ha scritto:
> >
> >
> > Perhaps etc/ORG-NEWS would help:
> >
> > *** Element cache persists across Emacs sessions
> >
> > The cache state is saved between Emacs sessions. Enabled by default.
> >
> > The cache persistence can be controlled via
> > ~org-element-cache-persistent~.
>
> Ok. I removed that folder (`rm`) then added
>
> (setq org-element-cache-persistent nil)
>
> to my init.el file.. and it is recreated!
>
> So, How I can disable the creation of that garbage from my .emacs.d directory?
BTW, I discovered this thread: https://lists.gnu.org/r/emacs-orgmode/2021-10/msg00644.html which confirms this feature does not introduce any benefit but only garbage that I have not yet been able to remove with init.el setting...
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-02 23:26 ` Angelo Graziosi
2022-12-02 23:52 ` Juanma Barranquero
2022-12-03 0:01 ` Angelo Graziosi
@ 2022-12-03 8:01 ` Björn Bidar
2022-12-03 9:22 ` Angelo Graziosi
2022-12-05 5:59 ` Thierry Volpiatto
3 siblings, 1 reply; 21+ messages in thread
From: Björn Bidar @ 2022-12-03 8:01 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: Juanma Barranquero, emacs-devel@gnu.org
Angelo Graziosi <angelo.g0@libero.it> writes:
> So, How I can disable the creation of that garbage from my .emacs.d directory?
That doesn't really disable it but try no-littering to keep your
.emacs.d clean.
You can get an extra point in keeping you $HOME clean by using
$XDG_CONFIG_HOME/emacs to store your init.el.
Br,
Björn
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-03 8:01 ` Björn Bidar
@ 2022-12-03 9:22 ` Angelo Graziosi
0 siblings, 0 replies; 21+ messages in thread
From: Angelo Graziosi @ 2022-12-03 9:22 UTC (permalink / raw)
To: Björn Bidar; +Cc: Juanma Barranquero, emacs-devel@gnu.org
> Il 03/12/2022 09:01 Björn Bidar ha scritto:
>
>
> Angelo Graziosi writes:
>
> > So, How I can disable the creation of that garbage from my .emacs.d directory?
>
> That doesn't really disable it but try no-littering to keep your
> .emacs.d clean.
I doubt there is a clean way to disable that.. BTW on GNU/Linux that folder is created under `.cache`...
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-02 23:26 ` Angelo Graziosi
` (2 preceding siblings ...)
2022-12-03 8:01 ` Björn Bidar
@ 2022-12-05 5:59 ` Thierry Volpiatto
2022-12-05 15:14 ` Angelo Graziosi
3 siblings, 1 reply; 21+ messages in thread
From: Thierry Volpiatto @ 2022-12-05 5:59 UTC (permalink / raw)
To: angelo.g0; +Cc: emacs-devel, lekktu
[-- Attachment #1: Type: text/plain, Size: 475 bytes --]
> So, How I can disable the creation of that garbage from my .emacs.d
> directory?
(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)))
--
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-05 5:59 ` Thierry Volpiatto
@ 2022-12-05 15:14 ` Angelo Graziosi
0 siblings, 0 replies; 21+ messages in thread
From: Angelo Graziosi @ 2022-12-05 15:14 UTC (permalink / raw)
To: Thierry Volpiatto; +Cc: emacs-devel, lekktu
> Il 05/12/2022 06:59 Thierry Volpiatto <thievol@posteo.net> ha scritto:
>
>
> > So, How I can disable the creation of that garbage from my .emacs.d
> > directory?
>
> (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)))
>
Thanks! it seems to work.. I had to remove two extra `))` at the end of the last row..
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-02 21:48 ` Juanma Barranquero
2022-12-02 23:26 ` Angelo Graziosi
@ 2022-12-03 0:06 ` Stefan Monnier
2022-12-03 2:10 ` Max Nikulin
2022-12-03 7:11 ` Eli Zaretskii
1 sibling, 2 replies; 21+ messages in thread
From: Stefan Monnier @ 2022-12-03 0:06 UTC (permalink / raw)
To: Juanma Barranquero; +Cc: Angelo Graziosi, emacs-devel@gnu.org
> Perhaps etc/ORG-NEWS would help:
>
> *** Element cache persists across Emacs sessions
>
> The cache state is saved between Emacs sessions. Enabled by default.
>
> The cache persistence can be controlled via
> ~org-element-cache-persistent~.
I'd `M-x report-emacs-bug`.
Stefan
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-03 0:06 ` Stefan Monnier
@ 2022-12-03 2:10 ` Max Nikulin
2022-12-03 9:30 ` Angelo Graziosi
2022-12-03 7:11 ` Eli Zaretskii
1 sibling, 1 reply; 21+ messages in thread
From: Max Nikulin @ 2022-12-03 2:10 UTC (permalink / raw)
To: emacs-devel@gnu.org; +Cc: Angelo Graziosi
On 03/12/2022 07:06, Stefan Monnier wrote:
>> Perhaps etc/ORG-NEWS would help:
>>
>> *** Element cache persists across Emacs sessions
>>
>> The cache state is saved between Emacs sessions. Enabled by default.
>>
>> The cache persistence can be controlled via
>> ~org-element-cache-persistent~.
>
> I'd `M-x report-emacs-bug`.
M-x org-submit-bug-report
See https://orgmode.org/manual/Feedback.html
org-element cache is intended to improve performance in the case of
large Org files.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-03 2:10 ` Max Nikulin
@ 2022-12-03 9:30 ` Angelo Graziosi
2022-12-04 3:58 ` Ihor Radchenko
0 siblings, 1 reply; 21+ messages in thread
From: Angelo Graziosi @ 2022-12-03 9:30 UTC (permalink / raw)
To: Max Nikulin, emacs-devel@gnu.org
> Il 03/12/2022 03:10 Max Nikulin <manikulin@gmail.com> ha scritto:
>
>
> On 03/12/2022 07:06, Stefan Monnier wrote:
> >> Perhaps etc/ORG-NEWS would help:
> >>
> >> *** Element cache persists across Emacs sessions
> >>
> >> The cache state is saved between Emacs sessions. Enabled by default.
> >>
> >> The cache persistence can be controlled via
> >> ~org-element-cache-persistent~.
> >
> > I'd `M-x report-emacs-bug`.
>
> M-x org-submit-bug-report
>
> See https://orgmode.org/manual/Feedback.html
>
> org-element cache is intended to improve performance in the case of
> large Org files.
No performance improvement is visible here...
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-03 9:30 ` Angelo Graziosi
@ 2022-12-04 3:58 ` Ihor Radchenko
2022-12-04 9:13 ` Angelo Graziosi
0 siblings, 1 reply; 21+ messages in thread
From: Ihor Radchenko @ 2022-12-04 3:58 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: Max Nikulin, emacs-devel@gnu.org
Angelo Graziosi <angelo.g0@libero.it> writes:
>> org-element cache is intended to improve performance in the case of
>> large Org files.
>
> No performance improvement is visible here...
Do you mean that things are slow for you? If yes, it would help if you
report what is slow. We can improve things.
--
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>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-04 3:58 ` Ihor Radchenko
@ 2022-12-04 9:13 ` Angelo Graziosi
2022-12-04 4:20 ` Ihor Radchenko
` (2 more replies)
0 siblings, 3 replies; 21+ messages in thread
From: Angelo Graziosi @ 2022-12-04 9:13 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Max Nikulin, emacs-devel@gnu.org
> Il 04/12/2022 04:58 Ihor Radchenko ha scritto:
>
>
> Angelo Graziosi writes:
>
> >> org-element cache is intended to improve performance in the case of
> >> large Org files.
> >
> > No performance improvement is visible here...
>
> Do you mean that things are slow for you? If yes, it would help if you
> report what is slow. We can improve things.
>
No, I did not mean that. In my case things work just fine and your changes brings only garbage in .emacs.d (on Windows) and in .cache (on GNU/Linux), so I asked I to revert/disable the creation of this `org-persist` folder, and YOU didn't answer...
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-04 9:13 ` Angelo Graziosi
@ 2022-12-04 4:20 ` Ihor Radchenko
2022-12-04 9:16 ` Angelo Graziosi
2022-12-04 9:21 ` Angelo Graziosi
2 siblings, 0 replies; 21+ messages in thread
From: Ihor Radchenko @ 2022-12-04 4:20 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: Max Nikulin, emacs-devel@gnu.org
Angelo Graziosi <angelo.g0@libero.it> writes:
> ... In my case things work just fine and your changes brings only garbage in .emacs.d (on Windows) and in .cache (on GNU/Linux), so I asked I to revert/disable the creation of this `org-persist` folder, and YOU didn't answer...
Please check out the Org mailing list thread.
--
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>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-04 9:13 ` Angelo Graziosi
2022-12-04 4:20 ` Ihor Radchenko
@ 2022-12-04 9:16 ` Angelo Graziosi
2022-12-04 9:21 ` Angelo Graziosi
2 siblings, 0 replies; 21+ messages in thread
From: Angelo Graziosi @ 2022-12-04 9:16 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Max Nikulin, emacs-devel@gnu.org
> Il 04/12/2022 10:13 Angelo Graziosi <angelo.g0@libero.it> ha scritto:
>
>
> > Il 04/12/2022 04:58 Ihor Radchenko ha scritto:
> >
> >
> > Angelo Graziosi writes:
> >
> > >> org-element cache is intended to improve performance in the case of
> > >> large Org files.
> > >
> > > No performance improvement is visible here...
> >
> > Do you mean that things are slow for you? If yes, it would help if you
> > report what is slow. We can improve things.
> >
>
> No, I did not mean that. In my case things work just fine and your changes brings only garbage in .emacs.d (on Windows) and in .cache (on GNU/Linux), so I asked I to revert/disable the creation of this `org-persist` folder, and YOU didn't answer...
This is a `sine qua non` to continue using ORG. Maybe I revert Emacs itself to my previous build..
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-04 9:13 ` Angelo Graziosi
2022-12-04 4:20 ` Ihor Radchenko
2022-12-04 9:16 ` Angelo Graziosi
@ 2022-12-04 9:21 ` Angelo Graziosi
2 siblings, 0 replies; 21+ messages in thread
From: Angelo Graziosi @ 2022-12-04 9:21 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Max Nikulin, emacs-devel@gnu.org
> Il 04/12/2022 10:13 Angelo Graziosi <angelo.g0@libero.it> ha scritto:
>
>
> > Il 04/12/2022 04:58 Ihor Radchenko ha scritto:
> >
> >
> > Angelo Graziosi writes:
> >
> > >> org-element cache is intended to improve performance in the case of
> > >> large Org files.
> > >
> > > No performance improvement is visible here...
> >
> > Do you mean that things are slow for you? If yes, it would help if you
> > report what is slow. We can improve things.
> >
>
> No, I did not mean that. In my case things work just fine and your changes brings only garbage in .emacs.d (on Windows) and in .cache (on GNU/Linux), so I asked I to revert/disable the creation of this `org-persist` folder, and YOU didn't answer...
I just read (https://lists.gnu.org/archive/html/emacs-orgmode/2022-12/msg00052.html) there is someone else with the same opinions/requests as me...
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: About the new directory org-persist in .emacs.d
2022-12-03 0:06 ` Stefan Monnier
2022-12-03 2:10 ` Max Nikulin
@ 2022-12-03 7:11 ` Eli Zaretskii
1 sibling, 0 replies; 21+ messages in thread
From: Eli Zaretskii @ 2022-12-03 7:11 UTC (permalink / raw)
To: Stefan Monnier; +Cc: lekktu, angelo.g0, emacs-devel
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Angelo Graziosi <angelo.g0@libero.it>, "emacs-devel@gnu.org"
> <emacs-devel@gnu.org>
> Date: Fri, 02 Dec 2022 19:06:38 -0500
>
> > Perhaps etc/ORG-NEWS would help:
> >
> > *** Element cache persists across Emacs sessions
> >
> > The cache state is saved between Emacs sessions. Enabled by default.
> >
> > The cache persistence can be controlled via
> > ~org-element-cache-persistent~.
>
> I'd `M-x report-emacs-bug`.
No, please report an Org bug first.
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2022-12-05 15:14 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-02 21:09 About the new directory org-persist in .emacs.d Angelo Graziosi
2022-12-02 21:48 ` Juanma Barranquero
2022-12-02 23:26 ` Angelo Graziosi
2022-12-02 23:52 ` Juanma Barranquero
2022-12-03 7:10 ` Eli Zaretskii
2022-12-03 9:20 ` Angelo Graziosi
2022-12-03 0:01 ` Angelo Graziosi
2022-12-03 0:13 ` Stefan Monnier
2022-12-03 8:01 ` Björn Bidar
2022-12-03 9:22 ` Angelo Graziosi
2022-12-05 5:59 ` Thierry Volpiatto
2022-12-05 15:14 ` Angelo Graziosi
2022-12-03 0:06 ` Stefan Monnier
2022-12-03 2:10 ` Max Nikulin
2022-12-03 9:30 ` Angelo Graziosi
2022-12-04 3:58 ` Ihor Radchenko
2022-12-04 9:13 ` Angelo Graziosi
2022-12-04 4:20 ` Ihor Radchenko
2022-12-04 9:16 ` Angelo Graziosi
2022-12-04 9:21 ` Angelo Graziosi
2022-12-03 7:11 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.