emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* search for DEADLINE in warning period
@ 2010-02-09 12:00 Łukasz Stelmach
  2010-02-09 12:28 ` Bernt Hansen
  2010-02-09 13:49 ` Matt Lundin
  0 siblings, 2 replies; 12+ messages in thread
From: Łukasz Stelmach @ 2010-02-09 12:00 UTC (permalink / raw)
  To: emacs-orgmode

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>="<now>"'. 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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-02-11 17:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 12:00 search for DEADLINE in warning period Łukasz Stelmach
2010-02-09 12:28 ` Bernt Hansen
2010-02-09 14:17   ` Łukasz Stelmach
2010-02-09 14:22     ` Carsten Dominik
2010-02-09 14:48       ` Matt Lundin
2010-02-10 12:19         ` Carsten Dominik
2010-02-10 18:41           ` Łukasz Stelmach
2010-02-11 16:07             ` Carsten Dominik
2010-02-11 17:39               ` Łukasz Stelmach
2010-02-11 14:07           ` Matthew Lundin
2010-02-09 13:49 ` Matt Lundin
2010-02-09 13:58   ` Łukasz Stelmach

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).