branch: externals/ergoemacs-mode
commit 59cb758453e677a4c5c4c1f039ca112c9eb34649
Author: Fidler <matthew.fid...@gmail.com>
Commit: Fidler <matthew.fid...@gmail.com>

    Change to an idle timer for more stability
---
 ergoemacs-command-loop.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ergoemacs-command-loop.el b/ergoemacs-command-loop.el
index 5f3ee1d..27f468a 100644
--- a/ergoemacs-command-loop.el
+++ b/ergoemacs-command-loop.el
@@ -1132,7 +1132,7 @@ is the :full command loop."
   (when (and (null ergoemacs-command-loop--prefix-timer)
             (eq ergoemacs-command-loop-type :prefix-timer))
     (setq ergoemacs-command-loop--prefix-timer
-         (run-at-time t ergoemacs-command-loop--prefix-timer-polling-time 
#'ergoemacs-command-loop--start-for-prefix))))
+         (run-with-idle-timer 
ergoemacs-command-loop--prefix-timer-polling-time t 
#'ergoemacs-command-loop--start-for-prefix))))
 
 (defun ergoemacs-command-loop--stop-prefix-timer ()
   "Stop prefix timer for ergoemacs-mode command loop."

Reply via email to