Function: org-agenda-clock-cancel

org-agenda-clock-cancel is an interactive and byte-compiled function defined in org-agenda.el.gz.

Signature

(org-agenda-clock-cancel &optional ARG)

Documentation

Cancel the currently running clock.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defun org-agenda-clock-cancel (&optional _arg)
  "Cancel the currently running clock."
  (interactive) ;; "P"
  (unless (marker-buffer org-clock-marker)
    (user-error "No running clock"))
  (org-with-remote-undo (marker-buffer org-clock-marker)
    (org-clock-cancel)))