mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: only update parent statistics cookies
This would formerly update _all_ statistics cookies in the org document, which can be terribly slow in large documents. This restricts that to just the parent headlines of the subtree the cursor is in.
This commit is contained in:
@ -393,7 +393,8 @@ another level of headings on each invocation."
|
|||||||
(defun +org|update-cookies ()
|
(defun +org|update-cookies ()
|
||||||
"Update counts in headlines (aka \"cookies\")."
|
"Update counts in headlines (aka \"cookies\")."
|
||||||
(when (and buffer-file-name (file-exists-p buffer-file-name))
|
(when (and buffer-file-name (file-exists-p buffer-file-name))
|
||||||
(org-update-statistics-cookies t)))
|
(let (org-hierarchical-todo-statistics)
|
||||||
|
(org-update-parent-todo-statistics))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org|yas-expand-maybe ()
|
(defun +org|yas-expand-maybe ()
|
||||||
|
Reference in New Issue
Block a user