emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] Re: planner task syntax


From: Torsten Anders
Subject: Re: [emacs-wiki-discuss] Re: planner task syntax
Date: Thu, 6 Apr 2006 19:30:32 +0200

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]