From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz_Stelmach?= Subject: search for DEADLINE in warning period Date: Tue, 09 Feb 2010 13:00:23 +0100 Message-ID: <877hqmobzc.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Neom2-0001wH-Tv for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 07:00:58 -0500 Received: from [199.232.76.173] (port=53720 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Neom2-0001w1-Eq for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 07:00:58 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Neolw-0005J0-LF for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 07:00:57 -0500 Received: from lo.gmane.org ([80.91.229.12]:43863) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Neolv-0005He-8u for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 07:00:52 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Neolq-0006k8-0w for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 13:00:46 +0100 Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Feb 2010 13:00:46 +0100 Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Feb 2010 13:00:46 +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: emacs-orgmode@gnu.org 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 `DEADLINE<="<+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>=""'. 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? -- Miłego dnia, Łukasz Stelmach