Variable: org-clock-out-when-done
org-clock-out-when-done is a customizable variable defined in
org-clock.el.gz.
Value
t
Documentation
When non-nil, clock will be stopped when the clocked entry is marked DONE.
DONE here means any DONE-like state.
A nil value means clock will keep running until stopped explicitly with
C-c C-x C-o (org-clock-out), or until the clock is started in a different item.
Instead of t, this can also be a list of TODO states that should trigger
clocking out.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-clock.el.gz
(defcustom org-clock-out-when-done t
"When non-nil, clock will be stopped when the clocked entry is marked DONE.
\\<org-mode-map>\
DONE here means any DONE-like state.
A nil value means clock will keep running until stopped explicitly with
`\\[org-clock-out]', or until the clock is started in a different item.
Instead of t, this can also be a list of TODO states that should trigger
clocking out."
:group 'org-clock
:type '(choice
(const :tag "No" nil)
(const :tag "Yes, when done" t)
(repeat :tag "State list"
(string :tag "TODO keyword"))))