From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Search to show only trees with no recent clock entries Date: Fri, 06 Dec 2013 14:58:14 +0100 Message-ID: <8761r284jt.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VovvG-0003JV-6W for emacs-orgmode@gnu.org; Fri, 06 Dec 2013 08:58:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vovv9-0005Sv-4h for emacs-orgmode@gnu.org; Fri, 06 Dec 2013 08:58:26 -0500 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:37160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vovv8-0005S9-Sy for emacs-orgmode@gnu.org; Fri, 06 Dec 2013 08:58:19 -0500 Received: by mail-we0-f182.google.com with SMTP id q59so668167wes.41 for ; Fri, 06 Dec 2013 05:58:17 -0800 (PST) In-Reply-To: (Subhan Tindall's message of "Mon, 2 Dec 2013 14:50:00 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Subhan Tindall Cc: Org-Mode Hi Subhan, Subhan Tindall writes: > Looking for a search to show only first-level trees that meet the > following criteria: > > all clock entries under the heading are older than a given date (IE 2 > weeks ago) > clock entries may be under several different sub-headings, at levels > ranging from * to **** > > ONLY level-1 entries meeting this criteria should be returned. You can't do this directly. But you could use `org-clock-out-hook' to update a dedicated date property of the entry, then only look for entries that are newer than the value of the property. Just quickly sketching this idea, sorry for not going into details. -- Bastien