From 8145df4ab30f6cd793e2cb9a268678321acb4f1e Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Sat, 22 Feb 2025 14:53:15 -0500 Subject: [PATCH] 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. --- mu4e/mu4e.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e.el b/mu4e/mu4e.el index d0bb91e5..8eb0c4dc 100644 --- a/mu4e/mu4e.el +++ b/mu4e/mu4e.el @@ -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.