Compare commits

..

No commits in common. "d1e3409e804d8d84c6fddbb50d7181a9def78d03" and "482cebea6804c7a9ec08f3b86afc1969a067b9ec" have entirely different histories.

View File

@ -424,26 +424,19 @@ should not be clocked."
This functions tries to clock into the interrupted task, the
parent task, or the default task, in that order and only when
available, respectively. Clock in to the interrupted task only
if it is not closed yet.
If none of the listed tasks is available, interactively query the
user for the next task to clock into."
available, respectively. If none of these tasks is available,
interactively query the user for the next task to clock into."
(when (and (not org-clock-clocking-in)
(not org-clock-resolving-clocks-due-to-idleness))
(let (parent-task)
(let ((parent-task (db/find-parent-task)))
(save-mark-and-excursion
(cond
((and (markerp org-clock-interrupted-task)
(marker-buffer org-clock-interrupted-task)
(org-with-point-at org-clock-interrupted-task
(not (member (nth 2 (org-heading-components))
org-done-keywords))))
;; interrupted task is set and not closed yet, so let's clock in
;; there
(marker-buffer org-clock-interrupted-task))
;; interrupted task is set
(org-with-point-at org-clock-interrupted-task
(org-clock-in)))
((setq parent-task (db/find-parent-task))
(parent-task
;; found parent task
(org-with-point-at parent-task
(org-clock-in)))
@ -473,7 +466,7 @@ user for the next task to clock into."
(modify-frame-parameters frame `((name . ,org-clock-heading)))))))
(defun db/show-current-org-task ()
"Show title of currently clock in task in minibuffer."
"Show title of currently clock in task in modeline."
(interactive)
(message org-clock-current-task))
@ -823,11 +816,10 @@ PARAMS is a property list of the following parameters:
(defun db/org-clock-in-last-task (&optional arg)
;; from doc.norang.ca, originally bh/clock-in-last-task
"Clock into the last task from the clocking history.
"Clock in the interrupted task if there is one.
Skip the default task if it's at the top of the clocking history,
and get the next one. If ARG is given, forces clocking in of the
default task, though."
Skip the default task and get the next one. If ARG is given,
forces clocking in of the default task."
(interactive "p")
(let ((clock-in-to-task
(cond