From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: tags-tree question Date: Tue, 23 Jun 2009 12:07:58 +0200 Message-ID: <08B5B178-4143-4ED9-B5B7-AED7391B8C05@gmail.com> References: <7171.1225288853@localhost> <30084876-7A14-42DA-93C6-B434BE43162F@uva.nl> <10913.1225668040@localhost> <874p2p4lw0.fsf@gollum.intra.norang.ca> <6724.1245583175@localhost> <871vpd8zso.fsf@gollum.intra.norang.ca> <22831.1245664393@localhost> <6138.1245711176@localhost> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJ2v9-00022v-He for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 06:08:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJ2v4-00020b-13 for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 06:08:06 -0400 Received: from [199.232.76.173] (port=51380 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ2v3-00020T-J6 for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 06:08:01 -0400 Received: from mail-ew0-f220.google.com ([209.85.219.220]:54382) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJ2v2-0002J5-RR for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 06:08:01 -0400 Received: by mail-ew0-f220.google.com with SMTP id 20so2228595ewy.42 for ; Tue, 23 Jun 2009 03:08:00 -0700 (PDT) In-Reply-To: <6138.1245711176@localhost> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Pete Phillips Cc: Bernt Hansen , emacs-orgmode@gnu.org On Jun 23, 2009, at 12:52 AM, Pete Phillips wrote: > Evening to you all > >>>>>> "Carsten" == Carsten Dominik 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 > > >