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

This commit is contained in:
Lucien Cartier-Tilet 2024-02-08 06:31:12 +01:00
parent 27e912d9a1
commit fa1194552d
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 2 additions and 1 deletions

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))))