summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-12-11 15:44:03 (GMT)
committer Bastien Guerry <bzg@altern.org>2012-12-11 15:44:03 (GMT)
commit1a41eeae1d309afb4d7b92705ccb0627a61a9fca (patch)
treeea0b26075c3ac400abb1f387bcf53d68c0e89198
parente5ea08f01b7e9075dde7ee7887b84cb752e2d8e2 (diff)
downloadorg-mode-1a41eeae1d309afb4d7b92705ccb0627a61a9fca.zip
org-mode-1a41eeae1d309afb4d7b92705ccb0627a61a9fca.tar.gz
org-agenda.el (org-agenda-finalize): Fix clock highlighting.
* org-agenda.el (org-agenda-finalize): Fix clock highlighting. Thanks to Rares Pop who reported this.
-rw-r--r--lisp/org-agenda.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 36f3fcb..f098c82 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -3531,7 +3531,11 @@ generating a new one."
(org-agenda-fontify-priorities))
(when (and org-agenda-dim-blocked-tasks org-blocker-hook)
(org-agenda-dim-blocked-tasks))
- (org-agenda-mark-clocking-task)
+ ;; 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-agenda-entry-text-mode
(org-agenda-entry-text-hide)
(org-agenda-entry-text-show))