From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: [PATCH] Implement history facility for org-occur searches Date: Mon, 10 Oct 2011 20:46:07 +0200 Message-ID: References: <20110824014739.7b7f230c@kuru.homelinux.net> <8BC585D4-66F5-4FB3-9D85-5B23C6E44C0C@gmail.com> <4D84CA41-ED23-4107-AD6D-7D1D1B1D0D6C@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDKrt-0002yv-En for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 14:46:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDKrs-0003tr-Cq for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 14:46:29 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:59826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDKrs-0003ti-6N for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 14:46:28 -0400 Received: by bkbzs2 with SMTP id zs2so9844356bkb.0 for ; Mon, 10 Oct 2011 11:46:27 -0700 (PDT) In-Reply-To: <4D84CA41-ED23-4107-AD6D-7D1D1B1D0D6C@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Org mode mailing list On Mon, Oct 10, 2011 at 8:16 PM, Carsten Dominik 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 > > =A0 org-outline-overlay-data > =A0 org-set-outline-overlay-data > > and at the macro > > =A0 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, --=20 Suvayu Open source is the future. It sets us free.