On 5/2/06, Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote:
>>>>> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes:
>> Because they are already there if they need to.
Bo> That is fine. Adding them the second time will not change
Bo> anything.
No, the list is a list of files opened via command-line or File>Open.
Session stuff should not interfere with that. Keeping the features
orthogonal is better.
I do not get it. Files opened through session are indeed "files opened
via command-line or File->Open", just that they are opened last time,
and are *already* in the lastfiles list. Re-adding these filenames
will not change anything.
Bo> Since such help files should go to lastopenedfiles, I can think of
Bo> two solutions
Bo> 1. at start up, try to tell lyx to use loadLyxFile(file, false)
Bo> for such files. This is difficult
But this is what we should do. I am sure this is not so difficult
after all. I have not understood your code very well, but it seems
that you hijack command line handling instead of opening the files by
yourself.
Yes. I simply put the lastopenedfiles to the command line. That was
the easiest solution.
Now, even if I open these files by myself, I still need a way to tell
which should go in lastfiles, which should not. This is close enough
to my second proposal (put this logic inside the function, and remove
the second parameter).
Bo