From 505db97a8c3450dded51d4415b9f20e39d3ac691 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Wed, 13 Mar 2024 13:26:00 +0300 Subject: [PATCH] org-update-parent-todo-statistics: Fix infinite loop after 4254a54f8 * lisp/org.el (org-update-parent-todo-statistics): Make sure that we move to the end of updated cookie at the end of search loop, even when the cookie has not been updated. Reported-by: No Wayman Link: https://orgmode.org/list/87le6pucnv.fsf@gmail.com --- lisp/org.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org.el b/lisp/org.el index 40a100fd4..6de5e6369 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9905,6 +9905,7 @@ statistics everywhere." (max 1 cnt-all))) (format "[%d/%d]" cnt-done cnt-all)) ndel (- (match-end 0) checkbox-beg)) + (goto-char (match-end 0)) (unless (string-equal new (buffer-substring checkbox-beg (match-end 0))) (goto-char checkbox-beg) (insert new)