Function: TeX-read-completing-read
TeX-read-completing-read is a byte-compiled function defined in
latex.el.
Signature
(TeX-read-completing-read OPTIONAL COLLECTION &optional PROMPT COMPLETE PREDICATE REQUIRE-MATCH INITIAL-INPUT HIST DEF INHERIT-INPUT-METHOD)
Documentation
Read a string in the minibuffer, with completion and return it.
If OPTIONAL is non-nil, indicate it in the prompt.
COLLECTION provides elements for completion and is passed to
completing-read. It can be:
- A function call without arguments
- A function object
- A symbol returning a list
- A List
PROMPT replaces the standard one where ' (cr): ' is appended to it. If you want the full control over the prompt, set COMPLETE to non-nil and then provide a full PROMPT.
PREDICATE, REQUIRE-MATCH, INITIAL-INPUT, HIST, DEF and
INHERIT-INPUT-METHOD are passed to completing-read, which see.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun TeX-read-completing-read (optional collection &optional prompt complete
predicate require-match
initial-input hist def
inherit-input-method)
"Read a string in the minibuffer, with completion and return it.
If OPTIONAL is non-nil, indicate it in the prompt.
COLLECTION provides elements for completion and is passed to
`completing-read'. It can be:
- A function call without arguments
- A function object
- A symbol returning a list
- A List
PROMPT replaces the standard one where \\=' (cr): \\=' is appended to
it. If you want the full control over the prompt, set COMPLETE
to non-nil and then provide a full PROMPT.
PREDICATE, REQUIRE-MATCH, INITIAL-INPUT, HIST, DEF and
INHERIT-INPUT-METHOD are passed to `completing-read', which see."
(completing-read
(TeX-argument-prompt optional
(cond ((and prompt (not complete))
(concat prompt " (cr)"))
((and prompt complete)
prompt)
(t nil))
"Option (cr)"
complete)
(cond ((and (listp collection)
(symbolp (car collection))
(fboundp (car collection))
(not (eq (car collection) 'lambda)))
(funcall (car collection)))
((functionp collection)
(funcall collection))
((and (symbolp collection)
(boundp collection))
(symbol-value collection))
(t collection))
predicate require-match initial-input hist def inherit-input-method))