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:
@ -131,8 +131,9 @@ Invoke FUNC if non-nil."
|
|||||||
(when (and mu4e-update-interval (null mu4e--update-timer))
|
(when (and mu4e-update-interval (null mu4e--update-timer))
|
||||||
(setq mu4e--update-timer
|
(setq mu4e--update-timer
|
||||||
(run-at-time 0 mu4e-update-interval
|
(run-at-time 0 mu4e-update-interval
|
||||||
(lambda () (mu4e-update-mail-and-index
|
(defun mu4e--refresh-timer ()
|
||||||
mu4e-index-update-in-background)))))))
|
(mu4e-update-mail-and-index
|
||||||
|
mu4e-index-update-in-background)))))))
|
||||||
|
|
||||||
(defun mu4e--start (&optional func)
|
(defun mu4e--start (&optional func)
|
||||||
"Start mu4e.
|
"Start mu4e.
|
||||||
|
|||||||
Reference in New Issue
Block a user