Function: org-with-clock-position
org-with-clock-position is a macro defined in org-clock.el.gz.
Signature
(org-with-clock-position CLOCK &rest FORMS)
Documentation
Evaluate FORMS with CLOCK as the current active clock.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-clock.el.gz
(defmacro org-with-clock-position (clock &rest forms)
"Evaluate FORMS with CLOCK as the current active clock."
(declare (indent 1) (debug t))
`(with-current-buffer (marker-buffer (car ,clock))
(org-with-wide-buffer
(goto-char (car ,clock))
(beginning-of-line)
,@forms)))