From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Finding old appointments Date: Sun, 25 Jul 2010 15:34:49 -0400 Message-ID: <87lj8z8iee.fsf@fastmail.fm> References: <87mxtj4612.fsf@thinkpad.tsdh.de> <876304efcg.fsf@mundaneum.com> <87wrsjig5k.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=50589 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Od6yK-0004oC-NR for emacs-orgmode@gnu.org; Sun, 25 Jul 2010 15:34:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Od6yJ-0004Id-Dl for emacs-orgmode@gnu.org; Sun, 25 Jul 2010 15:34:52 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:39838) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Od6yJ-0004IX-C2 for emacs-orgmode@gnu.org; Sun, 25 Jul 2010 15:34:51 -0400 In-Reply-To: <87wrsjig5k.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Sun, 25 Jul 2010 20:13:11 +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: Tassilo Horn Cc: emacs-orgmode@gnu.org Tassilo Horn writes: > Additionally, there are some more complex outdated entries, that have > subtrees and done todos. > > Yes, what I want to spot are enties with an active (or also inactive? > not sure about this one) timestamp that is before today, and if it's a > TODO, it has to be in a DONE state. The same must hold for any > subtrees. > > 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" (If I understand the question correctly...) The variable org-stuck-projects (see the docstring) can be tweaked to identify subtrees that match your criteria. A custom skip function might also be useful here. (info "(org) Special agenda views") Best, Matt