org-agenda-clock-cancel: Unmark clocking tasks in the agenda buffer

* lisp/org-agenda.el (org-agenda-clock-cancel): When canceling clock,
remove clocking overlays from current agenda buffer.
This commit is contained in:
Ihor Radchenko 2024-03-21 15:55:21 +03:00
parent fe83afc300
commit 5dbf930c2d
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 2 additions and 1 deletions

View File

@ -10543,7 +10543,8 @@ ARG is passed through to `org-deadline'."
(unless (marker-buffer org-clock-marker)
(user-error "No running clock"))
(org-with-remote-undo (marker-buffer org-clock-marker)
(org-clock-cancel)))
(org-clock-cancel))
(org-agenda-unmark-clocking-task))
(defun org-agenda-clock-goto ()
"Jump to the currently clocked in task within the agenda.