Re: [Orgmode] Re: Restore previous folded state of org buffer
On Jul 26, 2009, at 7:22 PM, User wrote: User spamfilteraccount at gmail.com writes: The folding information should simply be saved into a separate file. For example, for notes.org the accompanying folding information could be in notes.org.fold. The posted code can be trivially modified to behave this way and with this change the actual content of the org file is not affected at all and we have a pretty usable folding save/restore extension for org. The thing pestered me, so I fixed it to take care of it. Now folding information is saved into a separate file and it is saved when the buffer is closed (but only if the buffer is saved to disk to avoid saving folding info for discarded buffers). I fixed the algorithm too, because it was buggy. Now it's working well and it's also simpler. http://www.emacswiki.org/emacs/orgfold-separate-file.el Hi User, this is great functionality, thanks for sharing it. I would like to include it with Org-mode, s I need to ask: Do you have a copyright assignment with the FSF? Or are you willing to sign one? Thanks. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Restore previous folded state of org buffer
Carsten Dominik carsten.dominik at gmail.com writes: this is great functionality, thanks for sharing it. I would like to include it with Org-mode, s I need to ask: Do you have a copyright assignment with the FSF? Or are you willing to sign one? I don't have one and I doubt I'll have the time in these days to deal with it. The code is pretty trivial and short, so I think the best course of action is that someone with proper legal status reimplements it for org. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Restore previous folded state of org buffer
On Aug 3, 2009, at 7:33 AM, User wrote: Carsten Dominik carsten.dominik at gmail.com writes: this is great functionality, thanks for sharing it. I would like to include it with Org-mode, s I need to ask: Do you have a copyright assignment with the FSF? Or are you willing to sign one? I don't have one and I doubt I'll have the time in these days to deal with it. Getting one takes about 5 minutes now, and 5 minutes in a few weeks. The code is pretty trivial and short, so I think the best course of action is that someone with proper legal status reimplements it for org. That is also a possibility, ok. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Restore previous folded state of org buffer
Bastien bastienguerry at googlemail.com writes: 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? Unfortunately, I have more pressing matters to deal with currently, but I also have a possible solution if someone has a a little time to fix the package. The folding information should simply be saved into a separate file. For example, for notes.org the accompanying folding information could be in notes.org.fold. The posted code can be trivially modified to behave this way and with this change the actual content of the org file is not affected at all and we have a pretty usable folding save/restore extension for org. This could be another advantage of org over other packages, since this feature is pretty basic in my opinion and users usually look for something like this. P.S. If saving to a separate file is implemented then it is not necessary to trigger storing of folding info with the save hook. The user sometimes doesn't modify the file, only browses it, so saving fold info when the buffer is closed would be the perfect solution. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Restore previous folded state of org buffer
User spamfilteraccount at gmail.com writes: The folding information should simply be saved into a separate file. For example, for notes.org the accompanying folding information could be in notes.org.fold. The posted code can be trivially modified to behave this way and with this change the actual content of the org file is not affected at all and we have a pretty usable folding save/restore extension for org. The thing pestered me, so I fixed it to take care of it. Now folding information is saved into a separate file and it is saved when the buffer is closed (but only if the buffer is saved to disk to avoid saving folding info for discarded buffers). I fixed the algorithm too, because it was buggy. Now it's working well and it's also simpler. http://www.emacswiki.org/emacs/orgfold-separate-file.el ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Restore previous folded state of org buffer
User spamfilteracco...@gmail.com writes: User spamfilteraccount at gmail.com writes: The folding information should simply be saved into a separate file. For example, for notes.org the accompanying folding information could be in notes.org.fold. The posted code can be trivially modified to behave this way and with this change the actual content of the org file is not affected at all and we have a pretty usable folding save/restore extension for org. The thing pestered me, so I fixed it to take care of it. Now folding information is saved into a separate file and it is saved when the buffer is closed (but only if the buffer is saved to disk to avoid saving folding info for discarded buffers). I fixed the algorithm too, because it was buggy. Now it's working well and it's also simpler. Hey, that's nice. I was just about to suggest: Why not using a VISIBILITY property for that? (that would spare us the additional file..) but you were faster than me! :) Thanks for this, -- Bastien ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Restore previous folded state of org buffer
Bastien bastienguerry at googlemail.com writes: I was just about to suggest: Why not using a VISIBILITY property for that? (that would spare us the additional file..) but you were faster than me! :) Ah, yes. Properties. Being a new user I haven't yet used them, so they didn't occur to me. Anyway, we have a draft working implementation of the folding restore feature, so it can be used to experiment with different storage variants. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Restore previous folded state of org buffer
User spamfilteracco...@gmail.com writes: Bastien bastienguerry at googlemail.com writes: I was just about to suggest: Why not using a VISIBILITY property for that? (that would spare us the additional file..) but you were faster than me! :) Ah, yes. Properties. Being a new user I haven't yet used them, so they didn't occur to me. Anyway, we have a draft working implementation of the folding restore feature, so it can be used to experiment with different storage variants. Sure! That's great to have this, I think many people will use it. -- Bastien ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode