From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: org-sparse-tree on region or subtree? Date: Fri, 11 Mar 2011 20:18:14 -0500 Message-ID: <87fwqtxhk9.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=56260 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyDTH-00060m-Fr for emacs-orgmode@gnu.org; Fri, 11 Mar 2011 20:18:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PyDTG-0006V7-7k for emacs-orgmode@gnu.org; Fri, 11 Mar 2011 20:18:19 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:21461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PyDTG-0006V0-0d for emacs-orgmode@gnu.org; Fri, 11 Mar 2011 20:18:18 -0500 In-Reply-To: (Lee Hinman's message of "Fri, 11 Mar 2011 15:56:58 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Lee Hinman Cc: emacs-orgmode@gnu.org Lee Hinman writes: > Is it possible to run org-sparse-tree on a specific region or subtree of > an org file? > > I have an Org file with the following structure > > * 2010... > * 2011 > ** 2011-01 January... > ** 2011-02 February > *** 2011-02-01 Tuesday > **** Alice > - Plain list item 1 > - Plain list item 2 > **** Bob > - Plain list item a > - Plain list item b > *** 2011-02-08 Tuesday > **** Alice > - Plain list item 3 > - Plain list item 4 > **** Bob > - Plain list item c > - Plain list item d > > > I'd like to be able to be able to run a command and see all the Alice > entries for 2011-02 February. It seems like a sparse tree (with a regex > for Alice) on the 2011-02 February subtree would give me that. But I > *think* org-sparse-tree uses org-occur which always starts at > point-min, but I could easily be mis-reading the code. > > Does anyone have any ideas? Narrow to subtree, then run org-sparse-tree normally, then widen maybe? -- Bernt