On Mon, Oct 10, 2011 at 8:16 PM, Carsten Dominik <carsten.domi...@gmail.com> wrote: > > On 10.10.2011, at 09:47, suvayu ali wrote: >> >> My use case was to easily traverse through a sequence of sparse-tree >> searches. Something that I thought might be useful when searching in a >> large file. My implementation is probably very suboptimal. I was >> hoping to find a way to take a "snapshot" of a sparse tree view, and >> then "undo" or "redo" a sparse tree view. By undo/redo I mean >> restoring the visibility states of the trees and the highlighted >> search text. However I couldn't find a way to get the "snapshot", so I >> tried repeating the searches to achieve a similar result. > > We do have support for storing and setting outline visibility: > > Take a look at the functions > > org-outline-overlay-data > org-set-outline-overlay-data > > and at the macro > > org-save-outline-visibility > > which uses the two functions described above. >
Thanks a lot for these pointers Carsten! > > OK, I will mark it rejected, feel free to come back when you have > something convincing (not only for us, but also convincing for you!) :) > Will do. :) > - Carsten Cheers, -- Suvayu Open source is the future. It sets us free.