From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Implement history facility for org-occur searches Date: Thu, 6 Oct 2011 09:54:30 +0200 Message-ID: <8BC585D4-66F5-4FB3-9D85-5B23C6E44C0C@gmail.com> References: <20110824014739.7b7f230c@kuru.homelinux.net> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBimo-0007r0-Jg for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 03:54:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBimn-0006L2-6B for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 03:54:34 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:48994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBimm-0006Ko-Rq for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 03:54:33 -0400 Received: by eye13 with SMTP id 13so2712384eye.0 for ; Thu, 06 Oct 2011 00:54:31 -0700 (PDT) In-Reply-To: <20110824014739.7b7f230c@kuru.homelinux.net> 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: Suvayu Ali Cc: Org mode mailing list Hi Suvayu, could you describe your use case for this addition? When would you need this above calling org-occur again and using the minibuffer history to repeat your search? - Carsten On Aug 24, 2011, at 1:47 AM, Suvayu Ali wrote: > Hi Bastien and everyone, > > I wanted to implement a history facility for sparse trees. Since sparse > trees use org-occur and org-scan-tags any such facility would need to > be aware of both functions. My lisp foo proved to be too weak to > understand org-scan-tags, so I implemented this only for org-occur > searches. > > With this patch one can traverse the sparse tree history for date, > regular expression and TODO keyword searches with the > org-occur-history-forward and org-occur-history-backward functions. One > can also call the org-occur-history-next function interactively to jump > to the nth history entry. This should also work for any other searches > that uses org-occur as the backend. > > Please feel free to modify the patch if there are better ways to > implement this facility. Thank you. > > -- > Suvayu > > Open source is the future. It sets us free. > <0001-Implement-history-facility-for-org-occur-searches.patch> - Carsten