Function: ConTeXt-arg-ref

ConTeXt-arg-ref is a byte-compiled function defined in context.el.

Signature

(ConTeXt-arg-ref OPTIONAL &optional PROMPT DEFINITION)

Documentation

Prompt for a reference completing with known references.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/context.el
(defun ConTeXt-arg-ref (optional &optional prompt definition)
  "Prompt for a reference completing with known references."
  (let ((ref (completing-read (TeX-argument-prompt optional prompt "ref")
                              (LaTeX-label-list))))
    (if (and definition (not (string-equal "" ref)))
        (LaTeX-add-labels ref))
    (ConTeXt-argument-insert ref optional)))