From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanrong Lin Subject: Highlighting Sparse Tree Leaves Date: Thu, 14 Feb 2008 18:36:45 -0500 Message-ID: <47B4D08D.3040102@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPndT-0003rG-Jn for emacs-orgmode@gnu.org; Thu, 14 Feb 2008 18:36:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPndS-0003r4-43 for emacs-orgmode@gnu.org; Thu, 14 Feb 2008 18:36:59 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPndR-0003r1-T8 for emacs-orgmode@gnu.org; Thu, 14 Feb 2008 18:36:57 -0500 Received: from an-out-0708.google.com ([209.85.132.241]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JPndR-0003d6-Kl for emacs-orgmode@gnu.org; Thu, 14 Feb 2008 18:36:57 -0500 Received: by an-out-0708.google.com with SMTP id c25so86411ana.84 for ; Thu, 14 Feb 2008 15:36:52 -0800 (PST) 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: emacs-orgmode@gnu.org Hi, Is it possible to highlighting only the sparse tree leaves, or even better, highlighting the whole sparse tree but with leaves in a special face? The motivation for such a feature is this: Suppose I have a task tree like this: * TODO Task A *** TODO Task A.1 ***** TODO Task A.1.1 * TODO Task B *** TODO Task B.1 ***** TODO Task B.1.1 ***** TODO Task B.1.2 If I do a "org-sparse-tree", all those lines are highlighted, giving an impression that I have a lot of open tasks, but in reality I only have three tasks: A.1.1, B.1.1 and B.1.2, as the higher level tasks are automatically done if those are done. So it would be nice to highlight those leaves in a special face. Also, suppose both B.1.1 and B.1.2 are done, then Task B.1 should be highlighted as a leaf. Hope the above makes some sense. Thank you very much for giving it a thought. Wanrong