org-update-checkbox-count: Disable fold modification check
This commit is contained in:
parent
ea3d06e57e
commit
cfb2ddab11
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue