Re: [O] [RFC] Simple cache mechanism for `org-element-at-point'

2013-11-03 Thread Nicolas Goaziou
Hello, Eric Abrahamsen writes: > I wasn't expecting to report back anything meaningful on this issue > unless I saw a bug or problem. I've done quite a bit of day-to-day using > these patches -- editing, agenda stuff, and exporting -- with no > noticeable ill effects... so there's my report! Th

Re: [O] [RFC] Simple cache mechanism for `org-element-at-point'

2013-10-30 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Nicolas Goaziou writes: > >> Here is a slight change to the second one, which will correctly reset >> cache when some variables are customized or when a buffer is refreshed >> (C-c C-c on a keyword). > > By the way, almost a month has passed since the first message in t

Re: [O] [RFC] Simple cache mechanism for `org-element-at-point'

2013-10-30 Thread Nicolas Goaziou
Nicolas Goaziou writes: > Here is a slight change to the second one, which will correctly reset > cache when some variables are customized or when a buffer is refreshed > (C-c C-c on a keyword). By the way, almost a month has passed since the first message in this thread. Is someone still testin

Re: [O] [RFC] Simple cache mechanism for `org-element-at-point'

2013-10-27 Thread Nicolas Goaziou
Nicolas Goaziou writes: > The following patches introduce a simple cache mechanism for both > `org-element-at-point' and `org-element-context'. My goal is to make > them fast enough to be used in most core commands (excepted > headlines-only commands). > > Since a wrong cache can break Org behavi

Re: [O] [RFC] Simple cache mechanism for `org-element-at-point'

2013-10-04 Thread Nicolas Goaziou
Hello, Carsten Dominik writes: > 1. Updating on buffer modification hooks sounds like a very >demanding process. There is obviously a cost, but it shouldn't be very high. I simplified the process in the announcement. Actually, the cache is not updated right after each buffer modification. W

Re: [O] [RFC] Simple cache mechanism for `org-element-at-point'

2013-10-04 Thread Carsten Dominik
Hi Nicolas, this sounds like a great idea. I have not yet had the time to test it - but I would like to bring forward two basic worries. Maybe you have comments on them? 1. Updating on buffer modification hooks sounds like a very demanding process. You basically add a third expensive process

Re: [O] [RFC] Simple cache mechanism for `org-element-at-point'

2013-10-04 Thread Nicolas Goaziou
Hello, Eric Abrahamsen writes: > Cool! Anything in particular that we should be looking out for > (structure editing, export, etc)? It has so far not set my computer on > fire. Unfortunately, there is no simple recipe to try it out. Just use Org and, if you notice something suspicious, disable

Re: [O] [RFC] Simple cache mechanism for `org-element-at-point'

2013-10-03 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > The following patches introduce a simple cache mechanism for both > `org-element-at-point' and `org-element-context'. My goal is to make > them fast enough to be used in most core commands (excepted > headlines-only commands). > > Since a wrong cache can break