[Timeline] Make sure buffer is unfolded before iterating over clocklines

This commit is contained in:
Daniel - 2018-11-21 17:19:06 +01:00
parent f75609e987
commit 70c3fc3aee
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,10 @@ on the start of the headline. Traversal will be done from the
end of the file upwards. If the buffer is narrowed, only this
region will be traversed."
(when (eq major-mode 'org-mode)
;; Make sure everything is visible, as otherwise editing may produce odd
;; results
(org-cycle '(64))
(let* ((re (concat "^\\(\\*+\\)[ \t]\\|^[ \t]*"
org-clock-string
"[ \t]*\\(\\[.*?\\]\\)-+\\(\\[.*?\\]\\)")))