diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-03-06 21:32:06 +0100 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-03-06 21:34:35 +0100 |
commit | 38877e6cf9c3450d5411663bfa2c387b3e62653d (patch) | |
tree | 133ba08ba81d636bf464e1515648fc157efcc91d | |
parent | 3e06bae09bd89589e3cf7ca66818a39bad106a4f (diff) | |
download | org-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.el | 2 |
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 |