From 684140a32d2665b95e7b971f0e20359e4076d058 Mon Sep 17 00:00:00 2001 From: Anders Johansson Date: Mon, 29 Nov 2021 10:06:59 +0100 Subject: [PATCH] Fix code for cancelling timer as mentioned in #53 --- mini-modeline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini-modeline.el b/mini-modeline.el index 4301185..4a4f671 100755 --- a/mini-modeline.el +++ b/mini-modeline.el @@ -429,7 +429,7 @@ BODY will be supplied with orig-func and args." (redisplay) ;; (remove-hook 'post-command-hook #'mini-modeline-display) ;; (remove-hook 'pre-redisplay-functions #'mini-modeline-display) - (when (timerp (cancel-timer mini-modeline--timer))) + (when (timerp mini-modeline--timer) (cancel-timer mini-modeline--timer)) (mini-modeline-display 'clear) (advice-remove #'message #'mini-modeline--reroute-msg)