[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] Paste
From: |
Richard Shann |
Subject: |
Re: [Denemo-devel] Paste |
Date: |
Fri, 07 May 2010 10:17:50 +0100 |
On Thu, 2010-05-06 at 22:54 +0200, Nils Gey wrote:
> 3) Next problem:
> PushPosition and PopPosition
>
> I get the impression that the stack is not deleted between the
> scripts? Can this be done manually?
> I also have problems to fully understand the concept.
I think the a position A is stored as staff number, measure number,
object number.
This means that if you insert an object in the same measure as A then
when you PopPosition you will be at the object before A. If you insert a
measure before the measure with A the cursor will be in the measure
before the one containing A and so on. Basically, it is not easy to use
for the case where insertions/deletions are happening before A.
I don't think there is a trivial fix.
We could store an object id and search for it, which would take a medium
amount of coding (the minimum would be to generate such an ID in the C
routines and let scheme query for the ID of the current object).
Richard