Richard Heck ha scritto:
I've had the same idea. The mechanism would presumably be a "master
document" setting in Document>Settings, which would identify the
master document.
This would be similar to AucTeX, that writes (automatically) into the
child a (commented)
reference to the master, what does not seem to be difficult at all to
do. Anyway, I can even
live with the current mechanism, i.e. you need to open the master first,
in order to get the
link master<->child, if other developers don't like the idea of the link
child-->master.
That would then be opened whenever the child was, and the various
settings imported (which, in the code, may mean no more than giving
the two documents the same BufferParams).
Infact, I was just thinking at smth. like that. The main point I think
would be avoiding
replication of information between the master and child. Their infos are
merged only
by LyX at run-time for the various purposes (at least previewing and
macro expansion).
Note that this would also take care of backporting: If it's just one
BufferParams, then changes in the child ARE changes to the master.
Infact.
But this won't be a problem at all with Stefan's new code, which
should go into 1.6.svn soon.
How will that work ?
T.