branch: elpa/helm commit 42bb15b70e4ae276cf635e60a2c9018aee251693 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Simplify helm--execute-persistent-action-when-idle No need to call timer-set-idle-time as long as the action in timer is not consumed, only checking if timer is running has same effect. --- helm-core.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helm-core.el b/helm-core.el index 80f20826ff0..7ac9817ba0c 100644 --- a/helm-core.el +++ b/helm-core.el @@ -8154,8 +8154,7 @@ source or `helm-follow-input-idle-delay' or (let ((at (or delay (assoc-default 'follow-delay src) helm-follow-input-idle-delay))) - (if (timerp helm--execute-persistent-action-timer) - (timer-set-idle-time helm--execute-persistent-action-timer at) + (unless (timerp helm--execute-persistent-action-timer) (setq helm--execute-persistent-action-timer (run-with-idle-timer at nil