From mboxrd@z Thu Jan  1 00:00:00 1970
From: Richard Lawrence <richard.lawrence@berkeley.edu>
Subject: Agenda filtering
Date: Mon, 24 Oct 2016 07:56:18 -0700
Message-ID: <87h98194od.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me>
Mime-Version: 1.0
Content-Type: text/plain
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33509)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <richard.lawrence@berkeley.edu>) id 1bygeC-0001ex-3B
	for emacs-orgmode@gnu.org; Mon, 24 Oct 2016 10:54:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <richard.lawrence@berkeley.edu>) id 1byge6-0001S0-Ou
	for emacs-orgmode@gnu.org; Mon, 24 Oct 2016 10:54:44 -0400
Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]:34744)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <richard.lawrence@berkeley.edu>)
	id 1byge6-0001QJ-Ew
	for emacs-orgmode@gnu.org; Mon, 24 Oct 2016 10:54:38 -0400
Received: by mail-pf0-x22c.google.com with SMTP id r16so100569111pfg.1
	for <emacs-orgmode@gnu.org>; Mon, 24 Oct 2016 07:54:37 -0700 (PDT)
Received: from aquinas (c-67-169-117-151.hsd1.ca.comcast.net. [67.169.117.151])
	by smtp.gmail.com with ESMTPSA id
	w24sm26162948pfa.12.2016.10.24.07.54.33 for <emacs-orgmode@gnu.org>
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Mon, 24 Oct 2016 07:54:33 -0700 (PDT)
Received: from rwl by aquinas with local (Exim 4.84_2)
	(envelope-from <rwl@aquinas>) id 1bygfi-00018W-VQ
	for emacs-orgmode@gnu.org; Mon, 24 Oct 2016 07:56:18 -0700
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode/>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: "Emacs-orgmode"
	<emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
To: emacs-orgmode@gnu.org

Hi everyone,

I have an Org file with a lot of projects that look like this:

* TODO Project A
  DEADLINE: <2016-10-28 Fri>
** NEXT Subtask 1
** TODO Subtask 2

* TODO Project B
  DEADLINE: <2016-10-31 Mon>
** DONE Subtask 1
** NEXT Subtask 2

Some of these projects have deadlines far in the future, some near.  I'd
like to focus on just the NEXT tasks for projects with upcoming
deadlines.

Is there a simple way for me to say to the agenda, "Show me all (and
only) the NEXT tasks that are part of a project whose deadline is before
(say) 2016-11-01"?  It seems like this should be possible with the
built-in agenda but I can't quite figure it out.  The tricky thing is
filtering by the deadline of the parent project, which might be several
levels up.

Many thanks for your insights!

Best,
Richard