[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Restore previous folded state of org buffer
From: |
Bastien |
Subject: |
Re: [Orgmode] Restore previous folded state of org buffer |
Date: |
Sun, 26 Jul 2009 06:28:25 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
User <address@hidden> writes:
> I don't need this feature at the moment, but the problem
> intrigued me, so I came up with a quick implementation.
Great!
> I don't plan to work on it further, since I don't really need it
> yet (I'm a novice org user), but I put it here if someone wants
> to develop the idea.
>
> You simply load the elisp file and from that on folding state is
> automatically saved and restored for org mode files. The folding
> information is saved at the end of the org file itself every time
> the buffer is saved.
>
> It seemed to work pretty well. The only faulty case I discovered
> is when the very last branch is folded in the file, because it
> contains the saved folding info, but this bug is probably easy to
> fix with a little thinking.
Yes, I found this bug.
One way to work around this limitation and to safely store the folding
information would be to put it in a face property for each headline.
Perhaps you have time to dig into that direction?
Thanks for this proof-of-concept!
--
Bastien
- [Orgmode] Restored previous folded state after buffer opened again?, User, 2009/07/25
- [Orgmode] Re: Restored previous folded state after buffer opened again?, Matthew Lundin, 2009/07/25
- Re: [Orgmode] Restored previous folded state after buffer opened again?, Bastien, 2009/07/25
- [Orgmode] Restore previous folded state of org buffer, User, 2009/07/25
- Re: [Orgmode] Restore previous folded state of org buffer,
Bastien <=
- [Orgmode] Re: Restore previous folded state of org buffer, User, 2009/07/26
- [Orgmode] Re: Restore previous folded state of org buffer, User, 2009/07/26
- Re: [Orgmode] Re: Restore previous folded state of org buffer, Bastien, 2009/07/26
- [Orgmode] Re: Restore previous folded state of org buffer, User, 2009/07/26
- Re: [Orgmode] Re: Restore previous folded state of org buffer, Bastien, 2009/07/26
- Re: [Orgmode] Restore previous folded state of org buffer, Eric S Fraga, 2009/07/25