From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fletcher Charest Subject: Re: Filter for recursive counting (org-hierarchical-todo-statistics) Date: Tue, 14 Jan 2014 17:13:43 +0100 Message-ID: References: <87zjnbstqm.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04138a41e6f20904eff07925 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W36cc-0001Jy-Dp for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:13:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W36cb-0000EC-6g for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:13:46 -0500 In-Reply-To: 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: Bastien Cc: emacs-orgmode@gnu.org --f46d04138a41e6f20904eff07925 Content-Type: text/plain; charset=ISO-8859-1 Hi, Okay, actually, after using this solution, there is just one thing I think that could be considered a bug (not very problematic though). Consider the following subtree: * TOCOMPLETE Project A [0/3] ** TOCOMPLETE Subproject[0/2] *** TODO Task 1 *** TODO Task 2 ** TODO Task I excluded the keyword TOCOMPLETE from 'org-provide-todo-statistics' so it won't appear in the statistics. This is why I get [0/3] at the top of the subtree. But if I mark the 2 tasks in the subproject as DONE, then I also want to mark the subproject itself as DONE (using a special keyword, like COMPLETED). However, marking it as COMPLETED will include it again in the statistics: instead of getting [2/3], I will get [3/4]. Is there any way to explicitly include the DONE keyword in org-provide-todo-statistics (and consequently, implicitly exclude other DONE keywords)? I tried to include DONE but it doesn't work. Thank you very much and sorry for the nitpicking ;) FC On Fri, Jan 10, 2014 at 11:29 PM, Fletcher Charest < fletcher.charest@gmail.com> wrote: > Dear Bastien, > > Thank you very much! It works perfectly. > > Best regards, > > FC > > > On Sat, Jan 4, 2014 at 3:32 PM, Bastien wrote: > >> Hi Fletcher, >> >> Fletcher Charest writes: >> >> > My org-hierarchical-todo-statistics variable is set to nil in order >> > to obtain a recursive count of my TODO items in subtrees. However, I >> > would like to know if it is possible to filter this count to include >> > only some TODO keywords. >> >> You may want to customize `org-provide-todo-statistics' and set it to >> a list of TODO keywords for which you want statistics. >> >> HTH, >> >> -- >> Bastien >> > --f46d04138a41e6f20904eff07925 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

Okay, actually, after using this solution,= there is just one thing I think that could be considered a bug (not very p= roblematic though). Consider the following subtree:

* TOCOMPLETE Project A [0/3]
** TOCOMPLETE Subproject[0/2]
*** TODO Task 1
*** TODO Task 2
** T= ODO Task


I excluded the keyword TOCOMPLETE from &#= 39;org-provide-todo-statistics' so it won't appear in the statistic= s. This is why I get [0/3] at the top of the subtree. But if I mark the 2 t= asks in the subproject as DONE, then I also want to mark the subproject its= elf as DONE (using a special keyword, like COMPLETED). However, marking it = as COMPLETED will include it again in the statistics: instead of getting [2= /3], I will get [3/4].

Is there any way to explicitly include the DONE keyword in org-provide-= todo-statistics (and consequently, implicitly exclude other DONE keywords)?= I tried to include DONE but it doesn't work.

Thank you very much and sorry for the nitpicking ;)

= FC


On Fri, Jan 10, 2014 at 11:29 PM, Fletcher Charest &= lt;fletcher= .charest@gmail.com> wrote:
Dear Bastien,
=
Thank you very much! It works perfectly.

Best regards,
=
FC


On Sat, Jan 4, 2014 at 3:32 PM, Bastien <bzg@gnu.org> wrote:
Hi Fletcher,

Fletcher Charest <fletcher.charest@gmail.com> writes:

> My org-hierarchical-todo-statistics variable is set to nil in order > to obtain a recursive count of my TODO items in subtrees. However, I > would like to know if it is possible to filter this count to include > only some TODO keywords.

You may want to customize `org-provide-todo-statistics' and set i= t to
a list of TODO keywords for which you want statistics.

HTH,

--
=A0Bastien

--f46d04138a41e6f20904eff07925--