"Jacob S. Gordon" <[email protected]> writes:

> I noticed something unrelated to this bug, but since it’s in the same
> area I thought I’d hijack the thread.  If you call
> ‘org-update-statistics-cookies’ with a prefix argument on the
> following buffer the cookies will update correctly, but not if you’re
> narrowed to one of the top-level subtrees:
>
> * Test [0/2]
> ** TODO Subtask
> ** TODO Subtask
> * Test [0/0]
> ** TODO Subtask
> ** TODO Subtask
>
> Attached is a simple fix that calls ‘org-update-checkbox-count’ with
> an appropriate symbol when the buffer is narrowed.

> Subject: [PATCH v1] org-update-statistics-cookies: Respect narrowing

That makes sense, but please also update the docstring to explicitly
reflect the new behavior. Respecting narrowing is not consistent across
Org commands, so respecting narrowing is not a given.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to