Function: bib-create-auto-file
bib-create-auto-file is an interactive and byte-compiled function
defined in bib-cite.el.
Signature
(bib-create-auto-file)
Documentation
Force the creation of the AUCTeX auto file for a bibtex buffer.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/bib-cite.el
;; BibTeX-mode key def to create AUCTeX's parsing file.
(defun bib-create-auto-file ()
"Force the creation of the AUCTeX auto file for a bibtex buffer."
(interactive)
(if (not (require 'latex))
(error "Sorry, This is only useful if you have AUCTeX"))
(let ((TeX-auto-save t)
(TeX-auto-regexp-list BibTeX-auto-regexp-list))
;; TeX-auto-write
;; -> calls TeX-auto-store
;; -> calls TeX-auto-parse
;; clears LaTeX-auto-bibtem (temporary holding space for bibitems)
;; searches buffer using regexp in TeX-auto-regexp-list
;; -> if LaTeX-auto-bibtem (the temporary holding space for bibitems)
;; holds stuffs like
;; ("Zimmermann:1991" "Anger_et_al:1993")
;; as determined by
;; (member nil (mapcar 'TeX-auto-entry-clear-p TeX-auto-parser))
;; then it creates the auto file.
;; TeX-auto-write may call TeX-master-file which may fail if
;; TeX-header-end is unset (by LaTeX-common-initialization in latex-mode)
(if (not TeX-header-end)
(setq TeX-header-end LaTeX-header-end))
(TeX-auto-write)))