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:
Henrik Lissner 2020-11-06 02:29:37 -05:00
parent 03b0a834dd
commit 68b1594553
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)