From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: search for DEADLINE in warning period Date: Tue, 09 Feb 2010 07:28:50 -0500 Message-ID: <87eikuioe5.fsf@gollum.intra.norang.ca> 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 1NepDQ-0001ny-U9 for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 07:29:16 -0500 Received: from [140.186.70.92] (port=33650 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NepDP-0001nB-QG for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 07:29:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NepDM-0006VK-Qm for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 07:29:15 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:59900) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NepDM-0006Ug-FJ for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 07:29: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: > Greetings. > > Is there a way to search for a timestamp, particularly a DEADLINE, that > is in its warning period? > > Eg. > > --8<---------------cut here---------------start------------->8--- > > * TODO Pay the rent > DEADLINE: <2010-03-05 Fri -5d +1m> > > --8<---------------cut here---------------end--------------->8--- > > 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 > > --8<---------------cut here---------------start------------->8--- > > * TODO Pay the rent > SCHEDULED: <2010-03-01 +1m> > DEADLINE: <2010-03-05 Fri -5d +1m> > > --8<---------------cut here---------------end--------------->8--- > > and searching for `SCHEDULED>=3D""'. But it builds two logs of > > --8<---------------cut here---------------start------------->8--- > > - State "DONE" from "TODO" [2010-02-01 Mon 14:23] > > --8<---------------cut here---------------end--------------->8--- > > Is there a cleaner way to do it? I remove entries from the global TODO lists using the variables org-agenda-todo-ignore-scheduled, org-agenda-todo-ignore-deadlines, org-agenda-todo-ignore-with-date This leaves SCHEDULED and DEADLINE items only on the daily agenda view. So to see deadlines in the warning period I just go to the agenda for today (C-c a a) and it shows up. HTH, Bernt