From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Dimming ancestors in the agenda (relevant to indenting nested TODOs in agenda views) Date: Mon, 12 Sep 2011 17:30:13 +0800 Message-ID: <87ipoyyuoq.fsf@ericabrahamsen.net> References: <87mxez8eze.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R32qX-0004PJ-Gf for emacs-orgmode@gnu.org; Mon, 12 Sep 2011 05:30:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R32qW-0007n1-Gj for emacs-orgmode@gnu.org; Mon, 12 Sep 2011 05:30:33 -0400 Received: from lo.gmane.org ([80.91.229.12]:33843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R32qW-0007mv-8w for emacs-orgmode@gnu.org; Mon, 12 Sep 2011 05:30:32 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R32qU-0008Pd-N5 for emacs-orgmode@gnu.org; Mon, 12 Sep 2011 11:30:30 +0200 Received: from 123.115.188.150 ([123.115.188.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Sep 2011 11:30:30 +0200 Received: from eric by 123.115.188.150 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Sep 2011 11:30:30 +0200 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: emacs-orgmode@gnu.org On Sun, Sep 11 2011, Samuel Wales wrote: > 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. Thanks for keeping an eye on this! I had moved from calculating level to calculating path, and that looks like it will solve the basic issue. Now I'm fiddling with edge cases, and distinguishing todo blocks from agenda blocks in custom views, and… and… Getting close though! E