branch: externals/org-modern
commit 17068a51dcdf7f58206176938270d5dea53e8c30
Author: JD Smith <93749+jdtsm...@users.noreply.github.com>
Commit: JD Smith <93749+jdtsm...@users.noreply.github.com>

    refresh timer: run-at-time instead of idle
    
    We're just checking to see when org-indent has completed its async
    line prefix marking.
---
 org-modern-indent.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/org-modern-indent.el b/org-modern-indent.el
index bb99f73873..fe6c3b33c7 100644
--- a/org-modern-indent.el
+++ b/org-modern-indent.el
@@ -161,16 +161,14 @@ of the returned vector.  If PREFIX is nil or empty, nil 
is returned."
          (not (memq buf org-indent-agentized-buffers)))
       (progn
        (font-lock-add-keywords nil org-modern-indent--font-lock-keywords t)
-       ;; (org-unfontify-region (point-min) (point-max))
        (font-lock-flush))
-    (run-with-idle-timer 0.25 nil #'org-modern-indent--wait-and-refresh buf)))
+    (run-at-time 0.1 nil #'org-modern-indent--wait-and-refresh buf)))
 
 (defun org-modern-indent--refresh ()
   "Unfontify entire buffer and refresh line prefix."
   (with-silent-modifications
     (if org-indent-mode
        (org-indent-refresh-maybe (point-min) (point-max) nil))
-    ;; (org-unfontify-region (point-min) (point-max))
     (font-lock-flush)))
 
 (defun org-modern-indent--unfontify-wrap (fun)

Reply via email to