emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fletcher Charest <fletcher.charest@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Filter for recursive counting (org-hierarchical-todo-statistics)
Date: Tue, 14 Jan 2014 17:13:43 +0100	[thread overview]
Message-ID: <CAGk6a7kcDXj0e7RE9nEnkSVUazrkntdv3UQ-8TNPRRsoL9mUaQ@mail.gmail.com> (raw)
In-Reply-To: <CAGk6a7mai3D-s01tD5TL95acfg-GDs9QcTkHohYtaZVd+k5bDw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1704 bytes --]

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 <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 it to
>> a list of TODO keywords for which you want statistics.
>>
>> HTH,
>>
>> --
>>  Bastien
>>
>

[-- Attachment #2: Type: text/html, Size: 2712 bytes --]

  reply	other threads:[~2014-01-14 16:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-28 13:21 Filter for recursive counting (org-hierarchical-todo-statistics) Fletcher Charest
2014-01-04 14:32 ` Bastien
2014-01-10 22:29   ` Fletcher Charest
2014-01-14 16:13     ` Fletcher Charest [this message]
2014-01-20 15:09       ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGk6a7kcDXj0e7RE9nEnkSVUazrkntdv3UQ-8TNPRRsoL9mUaQ@mail.gmail.com \
    --to=fletcher.charest@gmail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).