|
@@ -850,6 +850,14 @@ the clocking selection, associated with the letter `d'."
|
|
|
(when interrupting
|
|
|
;; We are interrupting the clocking of a different task.
|
|
|
;; Save a marker to this task, so that we can go back.
|
|
|
+ ;; First check if we are trying to clock into the same task!
|
|
|
+ (when (save-excursion
|
|
|
+ (org-back-to-heading t)
|
|
|
+ (and (equal (marker-buffer org-clock-hd-marker)
|
|
|
+ (current-buffer))
|
|
|
+ (= (marker-position org-clock-hd-marker) (point))))
|
|
|
+ (message "Clock continues in \"%s\"" org-clock-heading)
|
|
|
+ (throw 'abort nil))
|
|
|
(move-marker org-clock-interrupted-task
|
|
|
(marker-position org-clock-marker)
|
|
|
(marker-buffer org-clock-marker))
|