Fix #4220: void-function org-clocking-p
On first invocation of +org/toggle-last-clock, before org-clock has loaded.
This commit is contained in:
parent
03b0a834dd
commit
68b1594553
1 changed files with 1 additions and 0 deletions
|
@ -305,6 +305,7 @@ Clock out if an active clock is running (or cancel it if prefix ARG is non-nil).
|
|||
If no clock is active, then clock into the last item. See `org-clock-in-last' to
|
||||
see how ARG affects this command."
|
||||
(interactive "P")
|
||||
(require 'org-clock)
|
||||
(cond ((org-clocking-p)
|
||||
(if arg
|
||||
(org-clock-cancel)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue