emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Pete Phillips <pete@smtl.co.uk>
Cc: emacs-orgmode@gnu.org, Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: tags-tree question
Date: Sun, 02 Nov 2008 20:51:43 -0500	[thread overview]
Message-ID: <874p2p4lw0.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <10913.1225668040@localhost> (Pete Phillips's message of "Sun\, 02 Nov 2008 23\:20\:40 +0000")

Pete Phillips <pete@smtl.co.uk> writes:

> On a related question, is it possible to set up an
> org-agenda-custom-command to pick out a set of tags, all of which have
> NEXT as a todo-type, and which either have no scheduled date, OR which
> have a scheduled or deadline date less than or equal to 1 month in the
> future.
> For example, show lines with 
>     NEXT and (Home | LaptopH | DIY) 
> where either there is no scheduled (or perhaps, deadline) date OR 
> 	Scheduled Date <= today + 1 month
> My thinking on this is that sometimes I have next actions (such as
> cutting my pampas grass every january), which would be set up like this:
> *** NEXT Cut pampass grass :DIY:
> SCHEDULED: <2009-01-12 Thu>
> My current setup uses this:
>  ("h" "Home Stuff (Next)"
>   ((tags "Home//NEXT" nil)
>    (tags "DIY//NEXT" nil)
>    (tags "LaptopH//NEXT" nil)
>   nil)
> The problem at the moment is that it shows up all year in my Home Stuff
> (Next) list (which searches for Home|LaptopH|DIY with NEXT todotypes),
> but I only want it to start showing up about a month before the date I
> have decided I need to do it. At the moment, NEXT items which I will
> need to do, but which I can't do anything about until nearer the time,
> clutter up my action lists.
> Is there any way to do this ?

Hi Pete,

For this do something like the following:

Set a deadline date on 

*** NEXT Cut pampass grass :DIY:
DEADLINE: <2009-01-12 Thu>


(setq org-agenda-todo-ignore-with-date t)

This keeps all tasks with a schedules or deadline date out of the list
of tasks when searching for next tasks and by default deadlines show up
on the agenda 30 days before they need to be done.

I find I'm using DEADLINE: a lot more then SCHEDULED: in my tasks.

In this case your custom agenda command to match NEXT tasks will not
list the tasks with dates (ever) and those tasks will show up on the
agenda 30 days before they need to be complete.  You can control when
they show up individually using dates such as

DEADLINE: <2009-01-12 Thu -60d>

This works great for me.


  reply	other threads:[~2008-11-03  1:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-29 14:00 tags-tree question Pete Phillips
2008-10-29 15:52 ` Carsten Dominik
2008-10-29 15:59   ` Carsten Dominik
2008-11-01 12:51   ` Carsten Dominik
2008-11-02 23:20     ` Pete Phillips
2008-11-03  1:51       ` Bernt Hansen [this message]
2009-06-21 11:19         ` Pete Phillips
2009-06-21 13:46           ` Bernt Hansen
2009-06-22  9:53             ` Pete Phillips
2009-06-22 11:56               ` Carsten Dominik
2009-06-22 22:52                 ` Pete Phillips
2009-06-23 10:07                   ` Carsten Dominik
2009-06-23  8:26                 ` Pete Phillips
2009-06-22 12:39               ` Bernt Hansen
2008-11-03  7:44       ` Carsten Dominik

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:

  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=874p2p4lw0.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pete@smtl.co.uk \


* 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


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).