InsetInclude should no longer creak at the joints and is now buffer agnostic, as it should be. However, it strikes me that it performs two separate tasks:
1. Include a LyX file. Lots of code to extract info from this LyX file. 2. Include a LaTeX file. Output 4 different 'flavours' of latex, \include, \input, \verbatimitem, \verbatimitem*. It could be simplified enormously if we moved this latter functionality over to the External inset. Shall I do this? -- Angus