Re: [O] adapted org-flag-drawer to hide newlines of consecutive drawers to save lines

2013-11-15 Thread Bastien
Nicolas Goaziou writes: > The only reliable way to know if it is cache related is to try with > `org-element-use-cache' set to nil. Right, I'll try this for a while if I'm hit again by the bug. -- Bastien

Re: [O] adapted org-flag-drawer to hide newlines of consecutive drawers to save lines

2013-11-15 Thread Nicolas Goaziou
Hello, Bastien writes: > If M-x org-element-cache-reset RET always solve such problems, then my > problems was not related to the cache, as org-element-cache-reset did > not solve it. The only reliable way to know if it is cache related is to try with `org-element-use-cache' set to nil. Regar

Re: [O] adapted org-flag-drawer to hide newlines of consecutive drawers to save lines

2013-11-14 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: >> The symptoms were that moving around with M- and friends was >> completely erratic. > > OK. I'll look into it. If M-x org-element-cache-reset RET always solve such problems, then my problems was not related to the cache, as org-element-cache-reset did not

Re: [O] adapted org-flag-drawer to hide newlines of consecutive drawers to save lines

2013-11-14 Thread Nicolas Goaziou
Hello, Bastien writes: > Thanks for the details. I think I've seen the cache corrupted > several times, I didn't know it was this. Any direction on how > to debug such problems? Not really. Cache bugs are a bit difficult to resolve because there can be quite a long time between the cause and

Re: [O] adapted org-flag-drawer to hide newlines of consecutive drawers to save lines

2013-11-13 Thread Bastien
Thanks for the details. I think I've seen the cache corrupted several times, I didn't know it was this. Any direction on how to debug such problems? The symptoms were that moving around with M- and friends was completely erratic. -- Bastien

Re: [O] adapted org-flag-drawer to hide newlines of consecutive drawers to save lines

2013-11-13 Thread Nicolas Goaziou
Bastien writes: > Is the cache activated by default? Yes, it is. There's an emergency variable, `org-element-use-cache' to disable it, but it should be used for debugging purpose only. From the user point of view, if the cache appears to be corrupted due to a bug, it may be simpler to call `org

Re: [O] adapted org-flag-drawer to hide newlines of consecutive drawers to save lines

2013-11-13 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > Bastien writes: > >> Beside, `org-flag-drawer' is currently under revision since Michael >> report on slowliness (and recent discussion with Tod and Aaron.) > > I rewrote `org-flag-drawer' a few days ago. It shouldn't be slow if > cache is activated. Is th

Re: [O] adapted org-flag-drawer to hide newlines of consecutive drawers to save lines

2013-11-13 Thread Nicolas Goaziou
Hello, Bastien writes: > Beside, `org-flag-drawer' is currently under revision since Michael > report on slowliness (and recent discussion with Tod and Aaron.) I rewrote `org-flag-drawer' a few days ago. It shouldn't be slow if cache is activated. Regards, -- Nicolas Goaziou

Re: [O] adapted org-flag-drawer to hide newlines of consecutive drawers to save lines

2013-11-12 Thread Bastien
Hi Gregor, Gregor Kappler writes: > When drawers are hidden this wastes three lines of screen real estate > : * heading > : :LOGBOOK:... > : :CLOCK:... > : :PROPERTIES:... > per line. > > I adapted org-flag-drawer to hide the newlines as well if another drawer > is following: > : * heading > : :

[O] adapted org-flag-drawer to hide newlines of consecutive drawers to save lines

2013-11-12 Thread Gregor Kappler
Often several consecutive drawers follow the headline in my setup. Maybe this code to hide newlines after drawers is of some use. When drawers are hidden this wastes three lines of screen real estate : * heading : :LOGBOOK:... : :CLOCK:... : :PROPERTIES:... per line. I adapted org-flag-drawer to