Function: TeX-arg-bibliography
TeX-arg-bibliography is a byte-compiled function defined in latex.el.
Signature
(TeX-arg-bibliography OPTIONAL &optional PROMPT)
Documentation
Prompt for a BibTeX database file.
If OPTIONAL is non-nil, insert the resulting value as an optional argument, otherwise as a mandatory one. Use PROMPT as the prompt string.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun TeX-arg-bibliography (optional &optional prompt)
"Prompt for a BibTeX database file.
If OPTIONAL is non-nil, insert the resulting value as an optional
argument, otherwise as a mandatory one. Use PROMPT as the prompt
string."
(message "Searching for BibTeX files...")
(or BibTeX-global-files
(setq BibTeX-global-files
(mapcar #'list (TeX-search-files-by-type 'bibinputs 'global t t))))
(message "Searching for BibTeX files...done")
(let ((styles (multi-prompt
"," t
(TeX-argument-prompt optional prompt "BibTeX files")
(append (mapcar #'list (TeX-search-files-by-type
'bibinputs 'local t t))
BibTeX-global-files))))
(apply #'LaTeX-add-bibliographies styles)
;; Run style files associated to the bibliography database files in order to
;; immediately fill `LaTeX-bibitem-list'.
(mapc #'TeX-run-style-hooks styles)
(TeX-argument-insert (mapconcat #'identity styles ",") optional)))