From mboxrd@z Thu Jan 1 00:00:00 1970 From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) Subject: Re: How to match TODO items not SCHEDULED or DEADLINE'd Date: Wed, 22 Apr 2015 10:03:23 -0400 Message-ID: <87a8y0gt04.fsf@yale.edu> References: <87fv7yhzx3.fsf@vostro.rath.org> <87r3rdzi5z.fsf@yale.edu> <87zj614htm.fsf@thinkpad.rath.org> <87zj61h0dr.fsf@yale.edu> <87iocp42bq.fsf@thinkpad.rath.org> <87fv7t3x06.fsf_-_@thinkpad.rath.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkvFr-0002ij-PI for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 10:03:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkvFo-0002CM-24 for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 10:03:55 -0400 Received: from plane.gmane.org ([80.91.229.3]:48922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkvFn-0002CD-SD for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 10:03:52 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YkvFj-00056x-KF for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 16:03:47 +0200 Received: from nat-130-132-173-151.central.yale.edu ([130.132.173.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Apr 2015 16:03:47 +0200 Received: from jorge.alfaro-murillo by nat-130-132-173-151.central.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Apr 2015 16:03:47 +0200 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 Nikolaus Rath writes: > On Apr 21 2015, Nikolaus Rath wrote: >> On Apr 21 2015, jorge.alfaro-murillo@yale.edu (Jorge A. >> Alfaro-Murillo) wrote: >>> Now, if you want to narrow the agenda (C-c a) or >>> org-sparse-tree (C-c /) to show TODO items not SCHEDULED or >>> DEADLINE'd use the key 'm' and the following match: >>> >>> -SCHEDULED={.+}-DEADLINE={.+}+TODO="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? That is a good question, I don't know. It fails for me as well in the org-sparse-tree, but not in the agenda. In the agenda it only shows Item 1 and Subitem 1, as it should. I had never used the sparse tree, it might by what it is supposed to do, perhaps it shows by default all entries up to a certain level. Hopefully someone can answer, if not perhaps a new thread with just that issue could serve as a bug report. -- Jorge.