Sfoglia il codice sorgente

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.
Nicolas Goaziou 14 anni fa
parent
commit
38877e6cf9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lisp/org-list.el

+ 1 - 1
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