Re: Fwd: r17814 - in /lyx-devel/trunk/src: BufferView.C frontends/...

2007-04-16 Thread Andre Poenitz
On Mon, Apr 16, 2007 at 12:42:26PM -0500, Bo Peng wrote: > >It can be converted to a DocIterator by using > >StableDocIterator::asDocIterator(...). > > My concern is the usability of this restored dociterator. For example, > How well this restored dociterator handles removed or closed (in the > ca

Re: Fwd: r17814 - in /lyx-devel/trunk/src: BufferView.C frontends/...

2007-04-16 Thread Bo Peng
It can be converted to a DocIterator by using StableDocIterator::asDocIterator(...). My concern is the usability of this restored dociterator. For example, How well this restored dociterator handles removed or closed (in the case of collapsable insets) insets? Cheers, Bo

Re: Fwd: r17814 - in /lyx-devel/trunk/src: BufferView.C frontends/...

2007-04-15 Thread Andre Poenitz
On Sun, Apr 15, 2007 at 01:29:04PM -0500, Bo Peng wrote: > >For deeper bookmarks: > >pit0, in0, pit1, in1, ..., pitn, posn file.lyx > > This is certainly doable and should be the way to go. However, I am > not confident in setting cursor to nested insets (collapsable, mathed > etc) using a restore

Re: Fwd: r17814 - in /lyx-devel/trunk/src: BufferView.C frontends/...

2007-04-15 Thread Bo Peng
For deeper bookmarks: pit0, in0, pit1, in1, ..., pitn, posn file.lyx This is certainly doable and should be the way to go. However, I am not confident in setting cursor to nested insets (collapsable, mathed etc) using a restored cursor stack. If you can supply a good moveToPosition function with

Re: Fwd: r17814 - in /lyx-devel/trunk/src: BufferView.C frontends/...

2007-04-15 Thread Abdelrazak Younes
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.ly

Re: Fwd: r17814 - in /lyx-devel/trunk/src: BufferView.C frontends/...

2007-04-15 Thread Bo Peng
Hum, why don't you save the paragraph id instead? I am sure sure of that 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. I will be happy to

Re: Fwd: r17814 - in /lyx-devel/trunk/src: BufferView.C frontends/...

2007-04-15 Thread Abdelrazak Younes
Bo Peng wrote: I just submitted the following patch. It is wrong not to save the whole cursor stack as lastFilePos, and it is more wrong to save top (innermost) level pit and pos. As a result, if you quit lyx with cursor in an inset, lastFilePos will save pit/pos within this inset, and will rest