On 2/25/07, John Sullivan <[EMAIL PROTECTED]> wrote:
> Also, is it possible to have the cyclic tasks  set apart from the
> non-cyclic task by separating them with a blank line and adding a
> header?

I think you could accomplish this with the planner-trunk module. Have you
checked that out? I'm kind of interested in doing this myself, so maybe I'll
take a look.

Conceivably one could do this by specifying a regular expression ,
"from [0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9]", in the
planner-trunk-rule-list.  The current planner-trunk module, however,
doesn't seem to support this, because planner-trunk groups tasks by
"plans", not the descriptions of tasks.  I've hacked planner-trunk and
instructed planner-trunk to compare regular expressions against both
the description and the plan of a task (see the diff at the end).  The
better way is to have a variable and allow users to trunk by plans
only (the classic way), by descriptions or both.


 Wei-Hao

diff -c "d:/whlin/emacs/planner/planner-trunk.el.orig"
"d:/whlin/emacs/planner/planner-trunk.el"
*** d:/whlin/emacs/planner/planner-trunk.el.orig        Tue Feb  6 10:13:46 2007
--- d:/whlin/emacs/planner/planner-trunk.el     Thu Feb 15 10:01:15 2007
***************
*** 166,177 ****

 (defun planner-trunk-task-plan-str (task-info)
   "Return plan string for TASK-INFO."
!   (or
    (if (fboundp 'planner-multi-task-link-as-list)
        (mapconcat 'identity
                   (planner-multi-task-link-as-list task-info) " ")
      (or (planner-task-link task-info)
!          (planner-task-plan task-info)))
    ""))

 (defun planner-trunk-completed-p (task-info)
--- 166,181 ----

 (defun planner-trunk-task-plan-str (task-info)
   "Return plan string for TASK-INFO."
!   (or
!    (concat
!     (planner-task-description task-info)
!     " "
!     (planner-task-plan task-info))
    (if (fboundp 'planner-multi-task-link-as-list)
        (mapconcat 'identity
                   (planner-multi-task-link-as-list task-info) " ")
      (or (planner-task-link task-info)
!        (planner-task-plan task-info)))
    ""))

 (defun planner-trunk-completed-p (task-info)

Diff finished.  Mon Feb 26 13:23:23 2007

_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to