Re: [O] after-todo-statistics hook for checkboxes

2014-10-20 Thread Bastien
Hi James and Nicolas, Nicolas Goaziou writes: > I have no objection to this. FWIW, same here. > Thanks for working on it. +1! -- Bastien

Re: [O] after-todo-statistics hook for checkboxes

2014-10-18 Thread Nicolas Goaziou
James Harkins writes: > So let me update my issue report/feature request: > > -- If there is a hook to do something after updating todo statistics, > then it would make sense to have a hook for updating checkbox > statistics as well. That hook should be called with the same arguments > (n-done n-

Re: [O] after-todo-statistics hook for checkboxes

2014-10-17 Thread James Harkins
At Fri, 17 Oct 2014 22:22:20 +0200, Nicolas Goaziou wrote: > This is because checkboxes (plain lists) are not related to TODO > keywords (headlines). There are TODO statistics cookies and checkbox > statistics cookies. Only the former run a hook once updated. Thanks for clarifying. I hadn't unders

Re: [O] after-todo-statistics hook for checkboxes

2014-10-17 Thread Nicolas Goaziou
Hello, James Harkins writes: > I'm sorry to be a pest, but I did get sent on a wild goose chase by > what is either a/ faulty behavior or b/ a faulty docstring. The > docstring of org-after-todo-statistics-hook says: "Hook that is called > after a TODO statistics cookie has been updated." Well,

Re: [O] after-todo-statistics hook for checkboxes

2014-10-16 Thread James Harkins
At Thu, 16 Oct 2014 18:39:46 +0200, Nicolas Goaziou wrote: > `org-todo-statistics-hook' is used for TODO (i.e. headlines) and > `org-checkbox-statistics-hook' is used for checkboxes (i.e. lists). > I see no bug here (although they aren't called with the same arguments, > but that's another story).

Re: [O] after-todo-statistics hook for checkboxes

2014-10-16 Thread Nicolas Goaziou
James Harkins writes: > I do think this issue qualifies as a bug (albeit minor). The real > behavior deviates from the documentation (in a way that's difficult to > justify logically). IMO it should be fixed, or the documentation > should explain that the after todo statistics hook doesn't work f

Re: [O] after-todo-statistics hook for checkboxes

2014-10-15 Thread James Harkins
On October 15, 2014 9:45:32 PM Nicolas Goaziou wrote: See also "org-checklist.el" in contrib/. Ok, I'll have a look. Not at my computer now. I do think this issue qualifies as a bug (albeit minor). The real behavior deviates from the documentation (in a way that's difficult to justify logi

Re: [O] after-todo-statistics hook for checkboxes

2014-10-15 Thread Nicolas Goaziou
Hello, James Harkins writes: > On Wed, 15 Oct 2014 19:08:31 +0800 > James Harkins wrote: > >> org-after-todo-statistics-hook allows you to do something to a node after >> its statistics cookie got updated. Unfortunately, it does this only for TODO >> subheadings and it doesn't work with check

Re: [O] after-todo-statistics hook for checkboxes

2014-10-15 Thread James Harkins
On Wed, 15 Oct 2014 19:08:31 +0800 James Harkins wrote: > org-after-todo-statistics-hook allows you to do something to a node after its > statistics cookie got updated. Unfortunately, it does this only for TODO > subheadings and it doesn't work with checkboxes. > (snip) > Actually... after a li

[O] after-todo-statistics hook for checkboxes

2014-10-15 Thread James Harkins
org-after-todo-statistics-hook allows you to do something to a node after its statistics cookie got updated. Unfortunately, it does this only for TODO subheadings and it doesn't work with checkboxes. Use case: Grading assignments. Each assignment is a subheading. Each student's work for that as