Function: org-clock-auto-clockout
org-clock-auto-clockout is a byte-compiled function defined in
org-clock.el.gz.
Signature
(org-clock-auto-clockout)
Documentation
Clock out the currently clocked in task if Emacs is idle.
See org-clock-auto-clockout-timer to set the idle time span.
This is only effective when org-clock-auto-clockout-insinuate
is present in the user configuration.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-clock.el.gz
(defun org-clock-auto-clockout ()
"Clock out the currently clocked in task if Emacs is idle.
See `org-clock-auto-clockout-timer' to set the idle time span.
This is only effective when `org-clock-auto-clockout-insinuate'
is present in the user configuration."
(when (and (numberp org-clock-auto-clockout-timer)
org-clock-current-task
(not (timerp org-clock--auto-clockout-timer-obj)))
(setq org-clock--auto-clockout-timer-obj
(run-with-idle-timer
org-clock-auto-clockout-timer nil #'org-clock--auto-clockout-maybe))))