summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-07-13 01:45:49 +0200
committerBastien Guerry <bzg@altern.org>2012-07-13 01:45:49 +0200
commit3ecd7a9ad03323feebad7dd1705302dab9c62372 (patch)
treebb5408410810919e31a7aef62694e68f5ef3bb13
parent3270f3a0eb57d661beacc6951d384abc030c36a0 (diff)
downloadorg-mode-3ecd7a9ad03323feebad7dd1705302dab9c62372.tar.gz
Move `org-clock-out-time' to the right place.
Thanks to Achim Gratz for spotting the compiler warning.
-rw-r--r--lisp/org-clock.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 6e7bf5b..e99eb52 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1052,6 +1052,7 @@ so long."
"Reset `org-clock-current-task' to nil."
(setq org-clock-current-task nil))
+(defvar org-clock-out-time nil) ; store the time of the last clock-out
(defun org-clock-in (&optional select start-time)
"Start the clock on the current item.
If necessary, clock-out of the currently active clock.
@@ -1399,7 +1400,6 @@ line and position cursor in that line."
(and (re-search-forward org-property-end-re nil t)
(goto-char (match-beginning 0))))))))
-(defvar org-clock-out-time nil) ; store the time of the last clock-out
(defun org-clock-out (&optional fail-quietly at-time)
"Stop the currently running clock.
Throw an error if there is no running clock and FAIL-QUIETLY is nil."