Bo Peng wrote:
Hum, why don't you save the paragraph id instead? I am sure sure of that

Oups, please read "I am _not_ sure" here...

but I think it is unique and persistent across restart.

No, it is not persistent across restart. If you close A.lyx, restart
lyx with B.lyx, and then open A.lyx, the paragraph IDs of A.lyx are
different.

Too bad!

I will be happy to see I am wrong (which will make my life
much easier :-).

Now I remember that Lars once talked about a patch for universal paragraph ID; I've mixed up the two things.

What you could do is memorize nested pit/pos value too. So, in session file, instead of:

pit, pos, file.lyx

you would use:

For top level bookmarks (level 0):
pit0, pos0, file.lyx

For deeper bookmarks:
pit0, in0, pit1, in1, ..., pitn, posn file.lyx

where inn is "inset number at pit n"

Abdel.



Abdel.

Reply via email to