From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: after-todo-statistics hook for checkboxes Date: Sat, 18 Oct 2014 10:21:51 +0800 Message-ID: <8761fidsn4.wl-jamshark70@qq.com> 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> <87r3y61m6b.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfJf6-0003mD-Ag for emacs-orgmode@gnu.org; Fri, 17 Oct 2014 22:22:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfJf0-0005qQ-Px for emacs-orgmode@gnu.org; Fri, 17 Oct 2014 22:22:32 -0400 Received: from smtpbgsg2.qq.com ([54.254.200.128]:59406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfJez-0005Zz-HJ for emacs-orgmode@gnu.org; Fri, 17 Oct 2014 22:22:26 -0400 In-Reply-To: <87r3y61m6b.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou , emacs-orgmode@gnu.org 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 understood that distinction. It occurred to me, after I sent my last e-mail, that someone might want one action after updating todo statistics and a different action after updating checkbox statistics. Using the same hook for both wouldn't be correct in that case. 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-not-done) so that the user could use one function for both, if desired. I can do this pretty easily and update the documentation. I don't have FSF papers signed, but I'm willing to get that ball rolling as well. But before spending any time on that, I want to ask if this is okay. I understand the objection against pressing org-after-todo-statistics-hook into service for checkboxes. If there's an objection against simply *having* a hook for checkboxes, I'm afraid I don't understand that. Thanks for your patience, hjh