Re: Re: planner task syntax

Torsten Anders <[email protected]>
Newsgroups gmane.emacs.wiki.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.