Mosè Giordano <[email protected]> writes: >> `LaTeX-bibliography-list' contains both bib files, but >> `LaTeX-bibitem-list' is nil. Thus, C-c [ completes nothing (but the >> bib menu is correct). After picking one entry from that, the next >> C-c [ completes only the chosen entry. > > You have to get the parsed files associated to the the bibliography > files first (just edit and save them).
Ah, that does the trick. >>> Maybe we can add a `TeX-run-style-hooks' inside >>> `TeX-arg-bibliography' and `LaTeX-arg-addbibresource', what do you >>> think? >> >> Could you elaborate what and why that would achieve? > > I suggest to add > (mapc 'TeX-run-style-hooks styles) > to the end of `TeX-arg-bibliography' (and something similar to > `LaTeX-arg-addbibresource'), just like style files of LaTeX packages > are run inside `LaTeX-arg-usepackage'. If there is already the parsed > file associated to the bibliography file, `LaTeX-bibitem-list' will be > immediately filled without the need to revert the document. And of > course we need to hope that the bibliography file has a different name > from the main document (it's not uncommon to use the same base name), > but this is a restriction intrinsic to AUCTeX, for the moment. Sounds good to me. Please add that explanation as a comment to the calls. Bye, Tassilo _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
