[Top][All Lists]
[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: |
Jim Ottaway |
Subject: |
Re: [emacs-wiki-discuss] Error on task creation since planner patch-136 |
Date: |
Mon, 19 Dec 2005 16:03:01 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>>>>> 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]
I can't see anything in patch-136 that would lead to this error. But I
do know that there is a problem in the relationship between
planner-appt and planner-trunk.
Just so that I can confirm that this is the problem
you have, can you tell me when was the last time you updated your copy
of planner [i.e., the last patch level] before patch-136?
The problem, briefly, is that planner-trunk-tasks moves point away
from the newly created task, and it is difficult reliably to find that
task to parse it for appointments.
I have an idea about how to fix this, but I don't have the time to do
it at the moment as it is rather involved. I could post the details
of what I think needs to be done if someone else wants to have a go.
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))
[assuming that you keep the trunking advice for
planner-sort-tasks-maybe]. I haven't tested this, but I think it
ought to work.
Regards,
--
Jim Ottaway
- [emacs-wiki-discuss] Error on task creation since planner patch-136, Michael Heinrich, 2005/12/19
- Re: [emacs-wiki-discuss] Error on task creation since planner patch-136, Jim Ottaway, 2005/12/19
- Re: [emacs-wiki-discuss] Error on task creation since planner patch-136, Michael Heinrich, 2005/12/19
- Re: [emacs-wiki-discuss] Error on task creation since planner patch-136,
Jim Ottaway <=
- Re: [emacs-wiki-discuss] Error on task creation since planner patch-136, Michael Heinrich, 2005/12/19
- Re: [emacs-wiki-discuss] Error on task creation since planner patch-136, Michael Heinrich, 2005/12/19
- Re: [emacs-wiki-discuss] Error on task creation since planner patch-136, Jim Ottaway, 2005/12/19
- Re: [emacs-wiki-discuss] Error on task creation since planner patch-136, Michael Heinrich, 2005/12/20
- Re: [emacs-wiki-discuss] Error on task creation since planner patch-136, Jim Ottaway, 2005/12/20
- Re: [emacs-wiki-discuss] Error on task creation since planner patch-136, Michael Heinrich, 2005/12/20
- Re: [emacs-wiki-discuss] Error on task creation since planner patch-136, Jim Ottaway, 2005/12/20