emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Pete Phillips <pete@smtl.co.uk>
Cc: Bernt Hansen <bernt@norang.ca>, emacs-orgmode@gnu.org
Subject: Re: tags-tree question
Date: Tue, 23 Jun 2009 12:07:58 +0200	[thread overview]
Message-ID: <08B5B178-4143-4ED9-B5B7-AED7391B8C05@gmail.com> (raw)
In-Reply-To: <6138.1245711176@localhost>


On Jun 23, 2009, at 12:52 AM, Pete Phillips wrote:

> Evening to you all
>
>>>>>> "Carsten" == Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>    Carsten> Pete, what exactly do you meam by "custom agenda" here.
>
> I mean it's one of my org-agenda-custom-commands. This is my (probably
> overly) complex setup to list any of the things I do at home, which  
> have
> a TODO="NEXT" action associated with them.
>
>  ("h" "Home Stuff (Next)"
>   ((tags-todo "Home//NEXT" nil)
>    (tags-todo "DIY//NEXT" nil)
>    (tags-todo "Karen//NEXT" nil)
>    (tags-todo "PhoneH//NEXT" nil)
>    (tags-todo "LaptopH//NEXT" nil)
>    (tags-todo "WaitingH//NEXT" nil)
>    (tags-todo "SometimeH//NEXT" nil))
>   nil)
>
> Some of these actions will have SCHEDULED or DEADLINE dates associated
> with them and I only want to see those actions 30 days (or perhaps 60
> days) before the date. Anything without a DEADLine or SCHEDULED date I
> want to see in the list.
>
>    Carsten> It is a tags/property/todo search?  In that case you could
>    Carsten> try something like
>    Carsten>       TODO="TODO"+DEADLINE<"<+1m>"
>    Carsten> as a search string
>
> OK - promising - this looks like it may do what I want:
>
> ("h" "Home Stuff (Next)"
> (
>  (tags-todo "TODO=\"NEXT\"+Home+DEADLINE<\"<+1m>\"" nil)
>  (tags-todo "TODO=\"NEXT\"+Home+DEADLINE=\"\"" nil)
>  (tags-todo "TODO=\"NEXT\"+Home+SCHEDULED<\"<+1m>\"" nil)
>  (tags-todo "TODO=\"NEXT\"+Home+SCHEDULED=\"\"" nil)
>
> etc
>
> I.e., find me NEXT items with the tag of Home, with a deadline within
> the next month, AND find me NEXT items with the Home tag, where  
> there is
> no DEADLINE, AND ....
>
> But that does seem very complex. (it also feels slow).
>
>    Carsten> HTH
>
> It does. At least i know there is a way to do it.  The question now  
> is -
> is there an easier way ?

Not currently, no.  And yes, it will be slow because of accessing  
properties
(DEADLINE counts as a property in this case).

You could construct a faster way by using org-agenda-skip and looking  
for
the deadline yourself.  That might actually work quite well and  
reasonably fast.

Let me know if you need help to put this together.

- Carsten

>
>    Carsten> - Carsten
>
>    Carsten> P.S. Nice to know you are still around, still using Org
>    Carsten> ... :-)
>
> :-)
>
> I haven't stopped using org-mode - it is the lubricant which oils the
> wheels of my life.  I have just reduced the time I can spend reading  
> and
> responding to mailing list emails. :-( Still grazing on the list  
> though.
>
> Cheers
> Pete
>
>
>

  reply	other threads:[~2009-06-23 10:08 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
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 [this message]
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:
  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=08B5B178-4143-4ED9-B5B7-AED7391B8C05@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=pete@smtl.co.uk \
    /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).