>>>>> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes:
>> There was the fact that document got added to the recently loaded >> list, if I remember. I think this is related to the way you add >> these files to the 'files' vector. It may be better (if possible) >> to load them directly. Bo> Sorry, I do not get it. Are you talking about lastfiles (recently Bo> opened files) or lastopenedfiles that will be loaded Bo> automatically? lastopenedfiles they should be loaded with second argument false to BufferView::loadLyXFile. Bo> I have never used this feature and I assumed that this behavior is Bo> designed to be so from day one. The patch has been committed, and Bo> can be partly reverted once this is fixed. (Georg complained that Bo> he can not use session because of this.) Yes, I know. But I suspect this was not the right problem. What we should do anyway is skip loading a file if it is already loaded. >> Concerning the cursor stack, I would advise to use >> StableDocIterator, which is designed for this task, probably by >> implementing the << and >> operators (the first is here, but I >> suspect it is not used). Bo> OK, I will see what I need to do. I still think the exact position Bo> is not that important but there are some perfectionists in this Bo> group. Perfectionists? Yes! Either we do it right or we don't. Seriously, there are people who have most of their document in 4 big branches or scary things like that. Having the cursor at the right place is important to them. JMarc
