From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Hinman Subject: Re: org-sparse-tree on region or subtree? Date: Sun, 13 Mar 2011 09:41:13 -0500 Message-ID: References: <87fwqtxhk9.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=39583 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PymTs-0003rQ-OR for emacs-orgmode@gnu.org; Sun, 13 Mar 2011 10:41:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PymTr-0005fo-AP for emacs-orgmode@gnu.org; Sun, 13 Mar 2011 10:41:16 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:33818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PymTr-0005fG-5l for emacs-orgmode@gnu.org; Sun, 13 Mar 2011 10:41:15 -0400 Received: by ewy9 with SMTP id 9so1405634ewy.0 for ; Sun, 13 Mar 2011 07:41:13 -0700 (PDT) In-Reply-To: <87fwqtxhk9.fsf@norang.ca> 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: emacs-orgmode@gnu.org Bernt & Suvayu, Thanks. Narrowing to subtree and then running org-sparse-tree worked great= . -- Lee On Fri, Mar 11, 2011 at 7:18 PM, Bernt Hansen wrote: > 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. =A0It seems like a sparse tree (with a reg= ex >> for Alice) on the 2011-02 February subtree would give me that. =A0But 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 >