|
@@ -4930,12 +4930,20 @@ be used to request time specification in the time stamp."
|
|
|
(org-clock-in arg)
|
|
|
(let* ((marker (or (get-text-property (point) 'org-marker)
|
|
|
(org-agenda-error)))
|
|
|
- (pos (marker-position marker)))
|
|
|
+ (hdmarker (or (get-text-property (point) 'org-hd-marker)
|
|
|
+ marker))
|
|
|
+ (pos (marker-position marker))
|
|
|
+ newhead)
|
|
|
(org-with-remote-undo (marker-buffer marker)
|
|
|
(with-current-buffer (marker-buffer marker)
|
|
|
(widen)
|
|
|
(goto-char pos)
|
|
|
- (org-clock-in arg))))))
|
|
|
+ (org-show-context 'agenda)
|
|
|
+ (org-show-entry)
|
|
|
+ (org-cycle-hide-drawers 'children)
|
|
|
+ (org-clock-in arg)
|
|
|
+ (setq newhead (org-get-heading)))
|
|
|
+ (org-agenda-change-all-lines newhead hdmarker t)))))
|
|
|
|
|
|
(defun org-agenda-clock-out (&optional arg)
|
|
|
"Stop the currently running clock."
|