emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lee Hinman <hinman@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-sparse-tree on region or subtree?
Date: Sun, 13 Mar 2011 09:41:13 -0500	[thread overview]
Message-ID: <AANLkTikSk=FsLz_gPHET03wVDatKuqF1i96hZqEKonYx@mail.gmail.com> (raw)
In-Reply-To: <87fwqtxhk9.fsf@norang.ca>

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 <bernt@norang.ca> wrote:
> Lee Hinman <hinman@gmail.com> 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
>

      reply	other threads:[~2011-03-13 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11 21:56 org-sparse-tree on region or subtree? Lee Hinman
2011-03-12  1:18 ` Bernt Hansen
2011-03-13 14:41   ` Lee Hinman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTikSk=FsLz_gPHET03wVDatKuqF1i96hZqEKonYx@mail.gmail.com' \
    --to=hinman@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).