Function: bib-display-citation
bib-display-citation is a byte-compiled function defined in
bib-cite.el.
Signature
(bib-display-citation)
Documentation
Do the displaying of cite info. Return t if found cite key, nil otherwise.
Example with cursor located over cite command or arguments:
\cite{Wadhams81,Bourke.et.al87,SchneiderBudeus94}
^Display-all-citations ^Display-this-citation
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/bib-cite.el
;;----------------------------------------------------------------------------
;; Routines to display or edit a citation's bibliography
(defun bib-display-citation ()
"Do the displaying of cite info. Return t if found cite key, nil otherwise.
Example with cursor located over cite command or arguments:
\\cite{Wadhams81,Bourke.et.al87,SchneiderBudeus94}
^Display-all-citations ^Display-this-citation"
(save-excursion
(let* ((the-keys-obarray (bib-get-citekeys-obarray)) ;1st in case of error
(work-buffer (get-buffer-create "*bibtex-work*"))
(bib-buffer (bib-get-bibliography nil))
(the-warnings (bib-get-citations
the-keys-obarray
bib-buffer
work-buffer
bib-substitute-string-in-display))
(the-warn-point))
(if the-warnings
(progn
(set-buffer work-buffer)
(goto-char 1)
(insert the-warnings)
(setq the-warn-point (point))))
(with-output-to-temp-buffer
"*Help*"
(set-buffer work-buffer)
(princ (buffer-substring 1 (point-max))))
(bib-cite-fontify-help-as-bibtex)
(if the-warn-point
(bib-cite-fontify-red the-warn-point))
(kill-buffer bib-buffer)
(kill-buffer work-buffer))))