From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Finding old appointments Date: Mon, 26 Jul 2010 09:32:38 +0200 Message-ID: <87iq42wve1.fsf@thinkpad.tsdh.de> References: <87mxtj4612.fsf@thinkpad.tsdh.de> <876304efcg.fsf@mundaneum.com> <87wrsjig5k.fsf@thinkpad.tsdh.de> <87lj8z8iee.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=45044 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdIBF-000219-7e for emacs-orgmode@gnu.org; Mon, 26 Jul 2010 03:33:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdIB9-0002Qe-8c for emacs-orgmode@gnu.org; Mon, 26 Jul 2010 03:32:57 -0400 Received: from lo.gmane.org ([80.91.229.12]:44537) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdIB8-0002Q8-VN for emacs-orgmode@gnu.org; Mon, 26 Jul 2010 03:32:51 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OdIB6-0001Oq-23 for emacs-orgmode@gnu.org; Mon, 26 Jul 2010 09:32:48 +0200 Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jul 2010 09:32:48 +0200 Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jul 2010 09:32:48 +0200 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: emacs-orgmode@gnu.org Matt Lundin writes: >> Well, basically I'm just looking for a search facility that shows me >> an agenda view with all entries that contain only timestamps before >> today and no pending todos, so that I can use the agenda commands to >> act on them. Some will be deleted, others archived. > > Here's an example of an agenda view that would bring up all old, > active timestamps marked DONE: > > C-c a m [RET] TIMESTAMP<""+TODO="DONE" Oh, nice. I've never use this search, but it is very useful. Simply by searching for a timestamp before today does already help me. Additionally, playing around with it helped me being even more specific. So what I want to get is an agenda with - headlines that contain only past timestamps and are closed TODOs (if they are TODOs), that is, any TODO state after the | in `org-todo-keywords' - the same applies to all children of that entry, recursively - the agenda should only list the top-most entries for which these properties hold Example: * Project X ** TODO foo SCHEDULED: <2010-06-22 Tue> ** Bla bla bla *** DONE baz DEADLINE: <2010-06-01 Tue> *** Meeting with Hugo <2010-06-04 Fri> So in that case, the search should list only the "Bla bla bla" entry, because it's the top-most entry where all children are past and done. The "TODO foo" is not recognized, because although its timestamp is in the past, it has an open TODO state. (And because of that, the parent of both entries "Project X" doesn't match the search criteria.) > (If I understand the question correctly...) The variable > org-stuck-projects (see the docstring) can be tweaked to identify > subtrees that match your criteria. Although I don't use the stuck projects functionality right now, I don't want to abuse it for something different. > A custom skip function might also be useful here. > > (info "(org) Special agenda views") Thanks, I'll read that up. Bye, Tassilo