Just to be a bit more specific: how can I change the function below
such that it expects a page/file/buffer as an argument? How is such a
page usually given (path? string of page content?). Thank you very
much.
(defun torsten/planner-schedule-sum-task-durations ()
"Returns duration sum of all tasks in buffer (?). The duration is
returned in seconds."
(save-excursion
(goto-char (point-min))
(let ((result 0))
(while (re-search-forward "^#[A-C]" nil t)
(let* ((task (planner-current-task-info))
(time (<get-duration> task)))
(setq result (+ result time))))
result)))
Thank you!
Regards,
Torsten
--
Torsten Anders
Sonic Arts Research Centre
Queen's University Belfast (UK)
www.torsten-anders.de
_______________________________________________
emacs-wiki-discuss mailing list
emacs-wiki-discuss@nongnu.org
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss