emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org cfb2ddab11 10/10: org-update-checkbox-count: Disabl


From: ELPA Syncer
Subject: [elpa] externals/org cfb2ddab11 10/10: org-update-checkbox-count: Disable fold modification check
Date: Sun, 14 May 2023 08:58:56 -0400 (EDT)

branch: externals/org
commit cfb2ddab11a534ed4e9bf86a17863d8c7664a661
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    org-update-checkbox-count: Disable fold modification check
---
 lisp/org-list.el | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/lisp/org-list.el b/lisp/org-list.el
index bc8c5012ba..0e52e99550 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -2615,11 +2615,12 @@ With optional prefix argument ALL, do this for the 
whole buffer."
              (checked (nth 3 cookie))
              (total (nth 4 cookie)))
         (goto-char beg)
-        (insert
-         (if percent (format "[%d%%]" (floor (* 100.0 checked)
-                                             (max 1 total)))
-           (format "[%d/%d]" checked total)))
-        (delete-region (point) (+ (point) (- end beg)))
+         (org-fold-core-ignore-modifications
+          (insert-and-inherit
+           (if percent (format "[%d%%]" (floor (* 100.0 checked)
+                                               (max 1 total)))
+             (format "[%d/%d]" checked total)))
+          (delete-region (point) (+ (point) (- end beg))))
         (when org-auto-align-tags (org-fix-tags-on-the-fly)))))))
 
 (defun org-get-checkbox-statistics-face ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]