Am 24.11.2008 um 17:49 schrieb Richard Heck:
Jürgen Spitzmüller wrote:
Richard Heck wrote:
This would do, in the sense that it'll get the result we want. But
let
me try to explain the problem again. The function loadIfNeeded() is
called for every single keypress, mouse press, or whatever, for
every
InsetInclude.
Hm, this is a problem in itself, I'd say.
That doesn't look so bad, though we should bring Stefan S into the
discussion. This happens because updateMacros checks all the
InsetInclude's to make sure their files are loaded.
I don't think it is only a macro thing. Isn't the updateLabels
mechanism doing that also to get the labels right?
In fact for macros it is not really critical if a file is not loaded,
or suddenly loaded later. Of course the macros defined in the child
will not be resolved outside. As soon as the file gets loaded, the
instances of the macro will be updated, all dynamically. Hence, all
this is non-destructive and only visually, the same goes for the labels.
But in general we should not change the behaviour that child documents
are loaded when the master is loaded. Because if they are not, the
labels and the macros are wrong until the user loads all of his 27
child documents. Other than that feel free to change the error
behaviour. I don't think it will make problems with macros and labels.
Stefan