Jürgen Spitzmüller wrote:
Abdelrazak Younes wrote:
I see. There's something wrong with nsetBibtex::getFiles(Buffer const &
buffer), buffer is not used at all.

Sure it is:
Path p(buffer.filePath());

p is not used.


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()).

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

Abdel.

Reply via email to