Use named function, not lambda, for refresh timer

This change turns the mu4e refresh timer into a named function, making
M-x list-timers output display a name having to do with mu4e instead
of an inscrutable "anonymous lambda" line.
This commit is contained in:
Daniel Colascione
2025-02-22 14:53:15 -05:00
parent 9b741eb6f0
commit 8145df4ab3

View File

@ -131,8 +131,9 @@ Invoke FUNC if non-nil."
(when (and mu4e-update-interval (null mu4e--update-timer))
(setq mu4e--update-timer
(run-at-time 0 mu4e-update-interval
(lambda () (mu4e-update-mail-and-index
mu4e-index-update-in-background)))))))
(defun mu4e--refresh-timer ()
(mu4e-update-mail-and-index
mu4e-index-update-in-background)))))))
(defun mu4e--start (&optional func)
"Start mu4e.