summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-03-06 21:32:06 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2011-03-06 21:34:35 +0100
commit38877e6cf9c3450d5411663bfa2c387b3e62653d (patch)
tree133ba08ba81d636bf464e1515648fc157efcc91d
parent3e06bae09bd89589e3cf7ca66818a39bad106a4f (diff)
downloadorg-mode-38877e6cf9c3450d5411663bfa2c387b3e62653d.tar.gz
org-list: update statistical cookies with check-boxes in an hidden subtree
* lisp/org-list.el (org-update-checkbox-count): Ensure cookies on an heading are correctly updated when checkboxes are hidden. It allows, for example, to use C-c C-x C-b on a collapsed tree and still get the update.
-rw-r--r--lisp/org-list.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el
index 2ddc496..12e7601 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -2173,7 +2173,7 @@ With optional prefix argument ALL, do this for the whole buffer."
(or (org-entry-get nil "COOKIE_DATA") ""))))
(bounds (if all
(cons (point-min) (point-max))
- (cons (or (ignore-errors (org-back-to-heading) (point))
+ (cons (or (ignore-errors (org-back-to-heading t) (point))
(point-min))
(save-excursion (outline-next-heading) (point)))))
(count-boxes