Bo,
It seems to me that it would be a good idea, in general, if we were to do that after, say, InsetInclude's parameters were changed. I saw some crashes with InsetBibtex that were related to my not updating this structure. E.g., I changed the bibfiles and then tried to save, but they hadn't been copied over yet. But I don't yet know the EmbeddedFiles code well enough how best to do this. Here's one sort of idea.
void Buffer::updateEmbeddedFiles() { embeddedFiles().enable(*this); } Does that seem right? rh