|
From: | Gregory Heytings |
Subject: | Re: Invalid or uninitialized timer |
Date: | Sat, 03 Dec 2022 23:21:07 +0000 |
(run-with-timer 0 4 #'ticker-second 'blue)Quite a strange call.C-h f run-with-timer RET (run-with-timer SECS REPEAT FUNCTION &rest ARGS) Perform an action after a delay of SECS seconds. Repeat the action every REPEAT seconds, if REPEAT is non-nil. SECS and REPEAT may be integers or floating point numbers. The action is to call FUNCTION with arguments ARGS.Passing the arguments to function in ARGS took me off guard.
You could also opt for a lambda form: (run-with-timer 0 4 (lambda () (ticker-second 'blue)))
[Prev in Thread] | Current Thread | [Next in Thread] |