diff options
author | Aaron L. Zeng <me@bcc32.com> | 2019-06-15 01:20:15 -0400 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-06-15 11:53:42 +0200 |
commit | 1b74ae0ba3e99d05884f3fe91b06a98de2f31490 (patch) | |
tree | 5a0e917b543b56aa3c07fe25e8c21c9ea9448669 | |
parent | 439782ae00dd9bb6955d474b316ff68835303c36 (diff) | |
download | org-mode-1b74ae0ba3e99d05884f3fe91b06a98de2f31490.tar.gz |
org-clock: Clear org-clock-current-task on clock cancel
* org-mode/lisp/org-clock.el (org-clock-cancel): Clear
`org-clock-current-task' when a clock is canceled.
This variable is used by some mode line packages (e.g.,
spaceline-all-the-icons), so not clearing the variable incorrectly
displays the previous task as ongoing.
-rw-r--r-- | lisp/org-clock.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 12b412f..3d8e113 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1741,6 +1741,7 @@ Optional argument N tells to change by that many units." (sit-for 2))) (move-marker org-clock-marker nil) (move-marker org-clock-hd-marker nil) + (setq org-clock-current-task nil) (setq global-mode-string (delq 'org-mode-line-string global-mode-string)) (org-clock-restore-frame-title-format) |