From: Bernt Hansen <bernt@norang.ca>
To: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
Cc: emacs-orgmode@gnu.org
Subject: Re: search for DEADLINE in warning period
Date: Tue, 09 Feb 2010 07:28:50 -0500 [thread overview]
Message-ID: <87eikuioe5.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <877hqmobzc.fsf@dasa3.iem.pw.edu.pl> ("Łukasz Stelmach"'s message of "Tue\, 09 Feb 2010 13\:00\:23 +0100")
Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> 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
> `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?
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
next prev parent reply other threads:[~2010-02-09 12:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-09 12:00 search for DEADLINE in warning period Łukasz Stelmach
2010-02-09 12:28 ` Bernt Hansen [this message]
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=87eikuioe5.fsf@gollum.intra.norang.ca \
--to=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=lukasz.stelmach@iem.pw.edu.pl \
/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).