1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-27 07:37:25 +00:00

org-agenda.el (org-agenda-finalize): Only mark clocking task when there is one

* org-agenda.el (org-agenda-finalize): Only mark clocking task
when there is one.
This commit is contained in:
Bastien Guerry 2013-01-06 09:11:08 +01:00
parent 7fe67bb942
commit f1191b86e3

View File

@ -3538,9 +3538,10 @@ generating a new one."
(org-agenda-dim-blocked-tasks))
;; We need to widen when `org-agenda-finalize' is called from
;; `org-agenda-change-all-lines' (e.g. in `org-agenda-clock-in')
(save-restriction
(widen)
(org-agenda-mark-clocking-task))
(when org-clock-current-task
(save-restriction
(widen)
(org-agenda-mark-clocking-task)))
(when org-agenda-entry-text-mode
(org-agenda-entry-text-hide)
(org-agenda-entry-text-show))