[O] bug: z in agenda goes to wrong headline

2011-10-05 Thread Samuel Wales
I wonder if z is using a marker to go to the headline?  Inserting a
line above in the outline can cause that line to be affected by z.

Maybe the code could confirm that it is the same headline?

I don't use this command, but probably others do.



Re: [O] bug: z in agenda goes to wrong headline

2011-10-05 Thread Samuel Wales
To reproduce, RET on a line in the agenda.  Insert a line above.

In agenda, z .



Re: [O] bug: z in agenda goes to wrong headline

2011-10-05 Thread Bernt Hansen
Samuel Wales samolog...@gmail.com writes:

 To reproduce, RET on a line in the agenda.  Insert a line above.

 In agenda, z .

That's because the agenda uses markers to know where the item is pointed
to.  If you enter a line above it you move the headline but the agenda
marker is not updated.  You need to regenerate the agenda to keep it up
to date.

-Bernt



Re: [O] bug: z in agenda goes to wrong headline

2011-10-05 Thread Samuel Wales
Hi Bernt,

As I wrote, that's what I figured.  :)

I wonder though if a check should be performed in similar cases.

Samuel