From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikolaus Rath Subject: How to match TODO items not SCHEDULED or DEADLINE'd (was: Sparse tree for undated TODOs, or hierachical agenda?) Date: Tue, 21 Apr 2015 16:03:05 -0700 Message-ID: <87fv7t3x06.fsf_-_@thinkpad.rath.org> References: <87fv7yhzx3.fsf@vostro.rath.org> <87r3rdzi5z.fsf@yale.edu> <87zj614htm.fsf@thinkpad.rath.org> <87zj61h0dr.fsf@yale.edu> <87iocp42bq.fsf@thinkpad.rath.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkhCE-0002lr-54 for emacs-orgmode@gnu.org; Tue, 21 Apr 2015 19:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkhCA-0002Fv-6u for emacs-orgmode@gnu.org; Tue, 21 Apr 2015 19:03:14 -0400 Received: from ebox.rath.org ([2600:3c01::f03c:91ff:fe69:db07]:35069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkhC9-0002Ff-WD for emacs-orgmode@gnu.org; Tue, 21 Apr 2015 19:03:10 -0400 Received: from thinkpad ([192.168.12.2]) by ebox.rath.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1YkhC5-0004OK-NR for emacs-orgmode@gnu.org; Tue, 21 Apr 2015 23:03:06 +0000 In-Reply-To: <87iocp42bq.fsf@thinkpad.rath.org> (Nikolaus Rath's message of "Tue, 21 Apr 2015 14:08:09 -0700") 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: emacs-orgmode@gnu.org On Apr 21 2015, Nikolaus Rath wrote: > On Apr 21 2015, jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) w= rote: >> Now, if you want to narrow the agenda (C-c a) or org-sparse-tree=20 >> (C-c /) to show TODO items not SCHEDULED or DEADLINE'd use the key=20 >> 'm' and the following match: >> >> -SCHEDULED=3D{.+}-DEADLINE=3D{.+}+TODO=3D"TODO" > > This, however, works perfectly, thanks a lot! Actually, it seems it does not work for some cases. If I have a file with * TODO Item 1 * TODO Item 2 SCHEDULED: <2015-04-24 Fri> * Heading ** TODO Subitem 1 ** TODO Subitem 1 SCHEDULED: <2015-04-24 Fri> end do the above procedure, I'm getting * TODO Item 1 * TODO Item 2... * Heading ** TODO Subitem 1... Why is "Item 2" not being hidden? Thanks, -Nikolaus --=20 GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB