Do not clock into interrupted task when it's the default task
Clocking into the default task should only happend as last resort.
This commit is contained in:
parent
661c5f9b22
commit
3a397139f2
@ -438,6 +438,12 @@ user for the next task to clock into."
|
||||
(cond
|
||||
((and (markerp org-clock-interrupted-task)
|
||||
(marker-buffer org-clock-interrupted-task)
|
||||
;; Ensure that interrupted task is not the default task; in this case, we prefer to
|
||||
;; continue with parent tasks instead.
|
||||
(or (not (markerp org-clock-default-task))
|
||||
(not (marker-buffer org-clock-default-task))
|
||||
(not (= org-clock-interrupted-task
|
||||
org-clock-default-task)))
|
||||
(org-with-point-at org-clock-interrupted-task
|
||||
(not (member (nth 2 (org-heading-components))
|
||||
org-done-keywords))))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user