Re: [Orgmode] Re: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread Bastien
Bastien b...@gnu.org writes: User spamfilteracco...@gmail.com writes: I added the timer, because I didn't know in which order the hooks are run. If org-mode hook runs first and then saveplace's hook which restores point then the above code has no effect. saveplace adds the hook at the end

[Orgmode] Re: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread User
Bastien bastienguerry at googlemail.com writes: If you load this *after* loading the saveplace hook then it should be okay. Thanks to Nick Dokos for shaking my brain on this :) Well, wasn't my original solution with the null timer much nicer? You didn't have to worry about making sure you

Nick Dokos: Re: [Orgmode] Re: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread Nick Dokos
[forgot to copy the list - again...] --- Forwarded Message Date:Tue, 28 Jul 2009 14:54:38 -0400 From:Nick Dokos nicholas.do...@hp.com To: User spamfilteracco...@gmail.com cc: nicholas.do...@hp.com Subject: Re: [Orgmode] Re: Showing hidden subtree automatically if point is

Re: [Orgmode] Re: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread Nick Dokos
PT (emacs user) spamfilteracco...@gmail.com wrote: On Tue, Jul 28, 2009 at 8:54 PM, Nick Dokosnicholas.do...@hp.com wrote: If they don't cost anything, yes. But I'm not sure I want an idle timer running all the time just to detect the (rare) occasions when I want to fold a tree. You

Re: [Orgmode] Re: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread Bastien
User spamfilteracco...@gmail.com writes: Bastien bastienguerry at googlemail.com writes: If you load this *after* loading the saveplace hook then it should be okay. Thanks to Nick Dokos for shaking my brain on this :) Well, wasn't my original solution with the null timer much nicer? You

Re: [Orgmode] Re: Showing hidden subtree automatically if point is hidden when the buffer is opened

2009-07-28 Thread Bastien
User spamfilteracco...@gmail.com writes: I added the timer, because I didn't know in which order the hooks are run. If org-mode hook runs first and then saveplace's hook which restores point then the above code has no effect. saveplace adds the hook at the end of the hooks list, by calling