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

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

Re: [emacs-wiki-discuss] Error on task creation since planner patch-136


From: Michael Heinrich
Subject: Re: [emacs-wiki-discuss] Error on task creation since planner patch-136
Date: Mon, 19 Dec 2005 21:16:56 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Jim Ottaway <address@hidden> writes:

>>>>>> Michael Heinrich <address@hidden> writes:
>> Jim Ottaway <address@hidden> writes:
>>>>>>>> Michael Heinrich <address@hidden> writes:
>>> 
>>>> Since planner patch-136 I get this error on task creation:
>>> 
>>>> Debugger entered--Lisp error: (error "There is no task on the current
>>>> line")
>
>>> I don't see that here.  Do you have anything in
>>> planner-create-task-hook that will modify the contents of the buffer
>>> after the task is created, such as sorting or planner-trunk-tasks? 
>
>> Yes. I use planner-trunk with this advice for planner-sort-tasks-maybe:
> [snip]
>
> In the mean-time I think that it would be possible to work around this
> by using after-advice to planner-create-task instead of a hook: remove
> planner-sort-tasks-maybe from planner-create-task-hook and add
> something like this:
>
> (defadvice planner-create-task (after my-sort-stuff activate)
>   (planner-sort-tasks-maybe))
>

I had to disable my advice for planner-sort-tasks-maybe.  But with

,----
| (defadvice planner-create-task (after my-sort-stuff activate)
|   (mh/trunk-by-project))
`----

it works.

Thank you for your help,
Michael Heinrich.




reply via email to

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