Function: TeX-argument-prompt

TeX-argument-prompt is a byte-compiled function defined in tex.el.

Signature

(TeX-argument-prompt OPTIONAL PROMPT DEFAULT &optional COMPLETE)

Documentation

Return a argument prompt.

If OPTIONAL is not nil then the prompt will start with `(Optional) '.

PROMPT will be used if not nil, otherwise use DEFAULT.

Unless optional argument COMPLETE is non-nil, `: ' will be appended.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-argument-prompt (optional prompt default &optional complete)
  "Return a argument prompt.

If OPTIONAL is not nil then the prompt will start with ``(Optional) ''.

PROMPT will be used if not nil, otherwise use DEFAULT.

Unless optional argument COMPLETE is non-nil, ``: '' will be appended."
  (concat (if optional "(Optional) " "")
          (if prompt prompt default)
          (if complete "" ": ")))