org-list: update cookies in special contexts
commite5a61ab260281bc5c8e10896aca918b3bfb69f1b
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 27 Jan 2011 20:11:47 +0000 (27 21:11 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Fri, 18 Feb 2011 11:45:12 +0000 (18 12:45 +0100)
treecb31d56458c1be5ab559951b822b1023926a4e30
parentf7ebd6bcf0ab741d0cd1c840a3fb7e7b21e84d41
org-list: update cookies in special contexts

* lisp/org-list.el (org-update-checkbox-count): when a part of the
  buffer is processed to count checkboxes, lists are read from top to
  bottom, but inside lists (in drawers, blocks, or inline tasks) are
  skipped. Thus, cookies cannot be updated. This patch enforces
  reading of such lists if counter is itself in a special context.
lisp/org-list.el