Re: #10310: Session handling does not restore cursor position

2016-07-29 Thread Scott Kostyshak
On Fri, Jul 29, 2016 at 04:43:46PM +0100, Guillaume Munch wrote: > Le 27/07/2016 à 23:01, Scott Kostyshak a écrit : > > > > I imagine it is there for performance reasons? > > A thousand lines in the file and a thousand entries in the map would be just > as fine, probably ten thousands as well. G

Re: #10310: Session handling does not restore cursor position

2016-07-29 Thread Guillaume Munch
Le 28/07/2016 à 10:46, Jean-Marc Lasgouttes a écrit : I think the limit is useful. I am sure somebody somewhere has a makefile that creates thousand of files... It would be better to make it work IMO. Ok. Added to the bug report with a easyfix tag so that we don't forget.

Re: #10310: Session handling does not restore cursor position

2016-07-29 Thread Guillaume Munch
Le 27/07/2016 à 23:01, Scott Kostyshak a écrit : I imagine it is there for performance reasons? A thousand lines in the file and a thousand entries in the map would be just as fine, probably ten thousands as well. LastFilePosSection::read() is called for every recent file when opening LyX

Re: #10310: Session handling does not restore cursor position

2016-07-28 Thread Jean-Marc Lasgouttes
I think the limit is useful. I am sure somebody somewhere has a makefile that creates thousand of files... It would be better to make it work IMO. JMarc Le 28 juillet 2016 00:01:43 GMT+02:00, Scott Kostyshak a écrit : >On Wed, Jul 27, 2016 at 03:23:37PM +0100, Guillaume Munch wrote: >> Two so

Re: #10310: Session handling does not restore cursor position

2016-07-27 Thread Scott Kostyshak
On Wed, Jul 27, 2016 at 03:23:37PM +0100, Guillaume Munch wrote: > Le 27/07/2016 à 14:05, Davide Anchisi a écrit : > > Yes, it is written in ~/.lyx/session every time I exit LyX. > > It seems it is not read back (or used) when opening LyX again. > > But, even stranger, it does work for some files,

Re: #10310: Session handling does not restore cursor position

2016-07-27 Thread Guillaume Munch
Le 27/07/2016 à 14:05, Davide Anchisi a écrit : Yes, it is written in ~/.lyx/session every time I exit LyX. It seems it is not read back (or used) when opening LyX again. But, even stranger, it does work for some files, apparently those created using LyX versions 2.1. For those files the cursor p

Re: #10310: Session handling does not restore cursor position

2016-07-27 Thread Davide Anchisi
position and/or the file is modified with v. 2.2.1. And even for them the cursor position is written in ~/.lyx/session with the same syntax, e.g.: 12, 4, /home/myHome/file.lyx 2016-07-26 21:31 GMT+02:00 LyX Ticket Tracker : > #10310: Session handling does not restore cursor posit