From fe98cc60e7b6a9fc607c9687e0f7c45fa067a74f Mon Sep 17 00:00:00 2001 From: Raúl Benencia Date: Wed, 14 Jan 2026 10:41:06 -0300 Subject: fix: idle-check-interval nil --- org-tempus.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/org-tempus.el b/org-tempus.el index 6251f9a..86d4583 100644 --- a/org-tempus.el +++ b/org-tempus.el @@ -210,12 +210,14 @@ When nil, start session tracking on clock-in." (run-at-time org-tempus-update-interval org-tempus-update-interval #'org-tempus--update-mode-line)) - (when (> org-tempus-idle-check-interval 0) + (when (and (numberp org-tempus-idle-check-interval) + (> org-tempus-idle-check-interval 0)) (setq org-tempus--idle-timer (run-at-time org-tempus-idle-check-interval org-tempus-idle-check-interval #'org-tempus--handle-idle))) - (when (> org-tempus-notification-reset-seconds 0) + (when (and (numberp org-tempus-notification-reset-seconds) + (> org-tempus-notification-reset-seconds 0)) (setq org-tempus--notification-reset-timer (run-at-time org-tempus-notification-reset-seconds org-tempus-notification-reset-seconds @@ -885,6 +887,10 @@ Return non-nil when an auto clock-in occurs." :global t (if org-tempus-mode (progn + (unless (numberp org-tempus-idle-check-interval) + (setq org-tempus-idle-check-interval 60)) + (unless (numberp org-tempus-notification-reset-seconds) + (setq org-tempus-notification-reset-seconds 3600)) (org-tempus--reset-notification-state) (org-tempus--start-timers) (add-hook 'org-clock-in-hook #'org-tempus--update-session-start) -- cgit v1.2.3