Suppose I set two idle timers
(run-with-idle-timer 3 nil #'function1)
(run-with-idle-timer 3 nil #'function2)
What is the effect? After roughly 3 seconds will emacs run function1
and then wait 3 further seconds, or will there be no second delay before running function2
?
I have browsed through the timer.el
code and could not see what action to expect.
Update/Conclusion
Thanks to phils' answer I tried evaluating
(run-with-idle-timer 2 nil #'message "Function 1")
(run-with-idle-timer 3 nil #'message "Function 2")
(run-with-idle-timer 3 nil #'message "Function 3")
(run-with-idle-timer 4 nil #'message "Function 4")
in the *scratch*
buffer and consistently get
Function 1
Function 3
Function 2
Function 4
printed in the *Messages*
buffer after 4 seconds idle time, demonstrating exactly the behaviour he describes.