From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Dimming ancestors in the agenda (relevant to indenting nested TODOs in agenda views) Date: Sat, 10 Sep 2011 14:02:54 -0700 Message-ID: References: <87mxez8eze.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2UhV-0003Uc-0V for emacs-orgmode@gnu.org; Sat, 10 Sep 2011 17:02:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2UhU-00013r-1q for emacs-orgmode@gnu.org; Sat, 10 Sep 2011 17:02:56 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:46133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2UhT-00013l-Vf for emacs-orgmode@gnu.org; Sat, 10 Sep 2011 17:02:56 -0400 Received: by yxi19 with SMTP id 19so1438095yxi.0 for ; Sat, 10 Sep 2011 14:02:54 -0700 (PDT) In-Reply-To: <87mxez8eze.fsf@ericabrahamsen.net> 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: Eric Abrahamsen Cc: emacs-orgmode@gnu.org Eric, > I'm starting with the easiest use-case: attaching a "level" text > property to each TODO. I'm trying to do this for TODOs produced by This might or might not solve all your needs, but one option for finding ancestors is to simply grab the olpath for each agenda line. Then you can compare pathname components. For example /a/b is an ancestor of /a/b/c/d/e. That would be sufficient for dimming ancestors. But you might be wanting to do something fancier. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com I support the Whittemore-Peterson Institute (WPI) === Bigotry against people with serious diseases is still bigotry.