mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-09 12:57:25 -05:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user