Abdelrazak Younes wrote:
> >> The local "vector<FileName> vec" in
> >> this method is the one that needs to be cached.
> >
> > I don't think so. It is returned in the function.
>
> I know, but look more closely to the code. My point is that this code is
> independent from the given Buffer. AFAIU, BibTex database are filled-in
> on demand of the GUI via LFUN_BIBTEX_DATABASE_ADD (via
> InsetBibtex::addDatabase()).

Yes.

> I think that if you close and reopen the file, the kpsewhich calls will
> be called several times again.

Yes. And everytime you modify (one of) the bibtex inset(s). AFAIU this has to 
be done, since we need to call kpsewhich for each bibtex file file 
separately. What do you intend to cache?

Jürgen

Reply via email to