From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pete Phillips Subject: Re: tags-tree question Date: Tue, 23 Jun 2009 09:26:50 +0100 Message-ID: <29861.1245745610@localhost> 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> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJ1MH-0007HN-Cl for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 04:28:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJ1MF-0007H2-5z for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 04:28:00 -0400 Received: from [199.232.76.173] (port=57563 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ1ME-0007Gy-WC for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 04:27:59 -0400 Received: from mailhost.smtl.co.uk ([95.177.8.150]:2918) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJ1ME-0000Xb-Ax for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 04:27:58 -0400 In-reply-to: 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: Carsten Dominik Cc: Bernt Hansen , emacs-orgmode@gnu.org Morning guys. >>>>> "Pete" == Pete Phillips smtl.co.uk> writes: Pete> Some of these actions will have SCHEDULED or DEADLINE dates associated Pete> with them and I only want to see those actions 30 days (or perhaps 60 Pete> days) before the date. Anything without a DEADLine or SCHEDULED date I Pete> 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 Pete> OK - promising - this looks like it may do what I want: Pete> ("h" "Home Stuff (Next)" Pete> ( Pete> (tags-todo "TODO=\"NEXT\"+Home+DEADLINE<\"<+1m>\"" nil) Pete> (tags-todo "TODO=\"NEXT\"+Home+DEADLINE=\"\"" nil) Pete> (tags-todo "TODO=\"NEXT\"+Home+SCHEDULED<\"<+1m>\"" nil) Pete> (tags-todo "TODO=\"NEXT\"+Home+SCHEDULED=\"\"" nil) Pete> etc Pete> I.e., find me NEXT items with the tag of Home, with a deadline within Pete> the next month, AND find me NEXT items with the Home tag, where there is Pete> no DEADLINE, AND .... Hmm - not sure this does what I want. Can you tell me if the expression: (tags-todo "TODO=\"NEXT\"+Home+SCHEDULED=\"\"" nil) looks for a TODO=NEXT, with TAG=Home and *no* SCHEDULED date ? (i.e. there is no SCHEDULED: line associated with that item) ? My results are confusing at the moment. I can see some SCHEDULED items when I wouldn't expect to. Pete> But that does seem very complex. (it also feels slow). Yeah - taking around 30-40 seconds to build the buffer. Are there any potential speedups ? Pete