[Top][All Lists]
[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
- Re: [emacs-wiki-discuss] Re: planner task syntax, Torsten Anders, 2006/04/05
- [emacs-wiki-discuss] Re: planner task syntax, Michael Olson, 2006/04/05
- [emacs-wiki-discuss] Re: planner task syntax, Sacha Chua, 2006/04/05
- Re: [emacs-wiki-discuss] Re: planner task syntax, Torsten Anders, 2006/04/06
- Re: [emacs-wiki-discuss] Re: planner task syntax, Torsten Anders, 2006/04/06
- Re: [emacs-wiki-discuss] Re: planner task syntax, Torsten Anders, 2006/04/06
- Re: [emacs-wiki-discuss] Re: planner task syntax,
Torsten Anders <=
- Re: [emacs-wiki-discuss] Re: planner task syntax, Jim Ottaway, 2006/04/06
- Re: [emacs-wiki-discuss] Re: planner task syntax, Torsten Anders, 2006/04/07
- Re: [emacs-wiki-discuss] Re: planner task syntax, Jim Ottaway, 2006/04/07