org-list: fix update of check-boxes cookies in whole trees
commita0bc3bdebc3a48937332b96de11bd6470018c047
authorNicolas Goaziou <n.goaziou@gmail.com>
Mon, 20 Jun 2011 19:59:58 +0000 (20 21:59 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Mon, 20 Jun 2011 19:59:58 +0000 (20 21:59 +0200)
tree5dadecaa67a4f08b73a4ca8c9c3a0ff09424db04
parent8608b6651d18f41cbc343dcac77d27b1f0280df9
org-list: fix update of check-boxes cookies in whole trees

* lisp/org-list.el (org-reset-checkbox-state-subtree): make the
  command more robust, and correctly update check-boxes in the whole
  sub-tree.
(org-update-checkbox-count): fix bug accumulating count of checkboxes
when walking a subtree.
(org-update-checkbox-count-maybe): add an optional argument passed to
org-update-checkbox-count.

Thanks to Paul Mead for the report.
lisp/org-list.el