From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: search for DEADLINE in warning period Date: Tue, 09 Feb 2010 08:49:41 -0500 Message-ID: <87wrymwmbu.fsf@fastmail.fm> References: <877hqmobzc.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeqQy-0003AK-Gw for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 08:47:20 -0500 Received: from [199.232.76.173] (port=44119 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeqQx-0003AA-T9 for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 08:47:19 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeqQt-000312-JJ for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 08:47:19 -0500 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:43895) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NeqQp-00030F-T2 for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 08:47:12 -0500 In-Reply-To: <877hqmobzc.fsf@dasa3.iem.pw.edu.pl> (=?utf-8?Q?=22=C5=81ukas?= =?utf-8?Q?z?= Stelmach"'s message of "Tue, 09 Feb 2010 13:00:23 +0100") 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: =?utf-8?Q?=C5=81ukasz?= Stelmach Cc: emacs-orgmode@gnu.org =C5=81ukasz Stelmach writes: > Is there a way to search for a timestamp, particularly a DEADLINE, that > is in its warning period? > > Eg. > > > * TODO Pay the rent > DEADLINE: <2010-03-05 Fri -5d +1m> > > > This is a repeatable item so it's always in TODO state and pollutes my > TODO list for 25 out of 30 days in a month. Doing simple=20 > `DEADLINE<=3D"<+5d>"' does not satisfy me because there are notes I would > like to know about much earlier. That's why I'd like to facilitate the > timestamps' own warning periods. > > It seems to be workaroundable by adding a SCHEDULED date > > > * TODO Pay the rent > SCHEDULED: <2010-03-01 +1m> > DEADLINE: <2010-03-05 Fri -5d +1m> > > > and searching for `SCHEDULED>=3D""'. But it builds two logs of > > > - State "DONE" from "TODO" [2010-02-01 Mon 14:23] > > > Is there a cleaner way to do it? (setq org-agenda-todo-ignore-deadline 'near) With this setting, your items with a deadline will not show up in your TODO list until they are within the warning period. Best, Matt