From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: after-todo-statistics hook for checkboxes Date: Fri, 17 Oct 2014 22:22:20 +0200 Message-ID: <87r3y61m6b.fsf@nicolasgoaziou.fr> References: <87a94xk2ts.wl-jamshark70@qq.com> <20141015213843.6003d235@hjh-e431> <877g014fbp.fsf@nicolasgoaziou.fr> <1491662d440.27cd.0bb60a3c7e492ea180363c67eb170725@qq.com> <87tx342ckt.fsf@nicolasgoaziou.fr> <87a94vegzv.wl-jamshark70@qq.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfE20-00062b-5a for emacs-orgmode@gnu.org; Fri, 17 Oct 2014 16:21:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfE1o-0004px-Vb for emacs-orgmode@gnu.org; Fri, 17 Oct 2014 16:21:48 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:43185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfE1o-0004pn-Op for emacs-orgmode@gnu.org; Fri, 17 Oct 2014 16:21:36 -0400 In-Reply-To: <87a94vegzv.wl-jamshark70@qq.com> (James Harkins's message of "Fri, 17 Oct 2014 07:23:32 +0800") 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: James Harkins Cc: emacs-orgmode@gnu.org 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, that isn't > true. Changing a checkbox updates a stats cookie, and the hook is > *not* called. 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. > And it took more than an hour to figure that out. So, > for the sake of users dealing with this in the future, let's at least > fix the docstring then. Please provide a patch if you think a docstring can be improved. Regards, -- Nicolas Goaziou