emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
To: emacs-orgmode@gnu.org
Subject: search for DEADLINE in warning period
Date: Tue, 09 Feb 2010 13:00:23 +0100	[thread overview]
Message-ID: <877hqmobzc.fsf@dasa3.iem.pw.edu.pl> (raw)

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

             reply	other threads:[~2010-02-09 12:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-09 12:00 Łukasz Stelmach [this message]
2010-02-09 12:28 ` search for DEADLINE in warning period 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877hqmobzc.fsf@dasa3.iem.pw.edu.pl \
    --to=lukasz.stelmach@iem.pw.edu.pl \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).