Commit f449abb5 authored by Andrea Corallo's avatar Andrea Corallo
Browse files

No reason anymore to use `run-with-idle-timer' so use `run-with-timer'

parent f3389e93
......@@ -92,7 +92,7 @@ Cancel the previous one if present."
(when (timerp gcmh-idle-timer)
(cancel-timer gcmh-idle-timer))
(setf gcmh-idle-timer
(run-with-idle-timer idle-t nil #'gcmh-idle-garbage-collect))))
(run-with-timer idle-t nil #'gcmh-idle-garbage-collect))))
(defun gcmh-idle-garbage-collect ()
"Run garbage collection after `gcmh-idle-delay'."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment