Clocking: Move to task before calling org-clock-in-prepare-hook
commitdb8e06147ae0f30f2507453a91b3ac3fcb43c79f
authorMyles English <mylesenglish@gmail.com>
Fri, 26 Oct 2012 11:38:09 +0000 (26 12:38 +0100)
committerBastien Guerry <bzg@altern.org>
Fri, 26 Oct 2012 12:47:23 +0000 (26 14:47 +0200)
tree1c68cf88be6b8a834f95e5fb7aad0f9ed7dfaf09
parent58551f1e5f3747fd82c8a061c8129476f48ad296
Clocking: Move to task before calling org-clock-in-prepare-hook

* lisp/org-clock.el (org-clock-in): Moved the call to
org-clock-in-prepare-hook until the task's properties
can be accessed.

The problem was when using a function to add an effort
property via the hook, it would not recognise an existing
effort property when called with the prefix (C-u C-c C-x C-i)
with the point at a place other than at the task.

TINYCHANGE
lisp/org-clock.el