[Org] Keep point and mark when iterating over clock lines and headlines

This commit is contained in:
Daniel - 2018-01-13 12:49:43 +01:00
parent 0d2e773d9d
commit b81a152d42
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 4 additions and 2 deletions

View File

@ -957,10 +957,12 @@ end of the file upwards."
(cond
((match-end 2)
;; Two time stamps.
(funcall clockline-fn (match-string 2) (match-string 3)))
(save-mark-and-excursion
(funcall clockline-fn (match-string 2) (match-string 3))))
(t
;; A headline
(funcall headline-fn))))))))
(save-mark-and-excursion
(funcall headline-fn)))))))))
(defun db/org-clocking-time-in-range (tstart tend)
"Return list of all tasks in the current buffer together with