fix(Emacs gc): fix syntax of garbage-collecting function
All checks were successful
deploy / build (push) Successful in 2m42s

This commit is contained in:
2024-02-08 06:31:12 +01:00
parent 27e912d9a1
commit fa1194552d

View File

@@ -63,7 +63,8 @@ when it loses focus since Im looking away.
Garbage collection is only triggered thirty seconds after losing Garbage collection is only triggered thirty seconds after losing
focus, and only once." focus, and only once."
(if (frame-focus-state (if (frame-focus-state)
(when (timerp my/gc-timer)
(cancel-timer my/gc-timer)) (cancel-timer my/gc-timer))
(setq my/gc-timer (run-with-idle-timer 30 nil #'my/garbage-collect)))) (setq my/gc-timer (run-with-idle-timer 30 nil #'my/garbage-collect))))