From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhan Tindall Subject: Search to show only trees with no recent clock entries Date: Mon, 2 Dec 2013 14:50:00 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013cbde2f6046604ec94ffca Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VncJa-00030q-AE for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 17:50:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VncJV-0002Mc-Kh for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 17:50:06 -0500 Received: from mail-vb0-f54.google.com ([209.85.212.54]:47034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VncJV-0002MW-HP for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 17:50:01 -0500 Received: by mail-vb0-f54.google.com with SMTP id p6so9214348vbe.13 for ; Mon, 02 Dec 2013 14:50:00 -0800 (PST) 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: Org-Mode --089e013cbde2f6046604ec94ffca Content-Type: text/plain; charset=ISO-8859-1 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. I'm at a bit of a loss. Thanks! Subhan -- Subhan Michael Tindall | Software Developer | smt@rentrakmail.com RENTRAK | www.rentrak.com | NASDAQ: RENT --089e013cbde2f6046604ec94ffca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Looking for a search to show only first-level trees that m= eet the following criteria:

all clock entries under the = heading are older than a given date (IE 2 weeks ago)
clock entrie= s may be under several different sub-headings, at levels ranging from * to = ****

ONLY level-1 entries meeting this criteria should be re= turned.

I'm at a bit of a loss.

=
Thanks!
Subhan


--
Subhan Michael Tindall | Softwar= e Developer
| s= mt@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT
--089e013cbde2f6046604ec94ffca-- 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