John McCabe-Dansted wrote: > OK, I'm a little confused. We seem to use three types of language lists: > > 1) ./Language.h: typedef std::map<std::string, Language> > LanguageList; 2) ./LaTeXFeatures.h: typedef std::set<Language const *> > LanguageList; 3) void Buffer::getLanguages(std::set<Language const *> & > languages) const > > 2 and 3 are basically the same, except that 2 uses a typedef and 3 doesn't.
The reason why I added 3) for the sake of the menus is that 2) is only generated on LaTeX export, so we cannot use 2) for the menus. Probably LaTeXFeatures can use 3) now, too, but you need to check carefully if how the LaTeXFeatures language list is generated. Jürgen