Function: TeX-arg-key-val
TeX-arg-key-val is a byte-compiled function defined in latex.el.
Signature
(TeX-arg-key-val OPTIONAL KEY-VAL-ALIST &optional PROMPT COMPLETE REM-CHAR LEFTBRACE RIGHTBRACE PREDICATE REQUIRE-MATCH INITIAL-INPUT HIST DEF INHERIT-INPUT-METHOD)
Documentation
Prompt for keys and values in KEY-VAL-ALIST.
Insert the given value as a TeX macro argument. If OPTIONAL is
non-nil, insert it as an optional argument. KEY-VAL-ALIST is an
alist. The car of each element should be a string representing a
key and the optional cdr should be a list with strings to be used
as values for the key. Refer to TeX-read-key-val for more
about KEY-VAL-ALIST.
PROMPT replaces the standard one where ' (k=v): ' is appended to it. If you want the full control over the prompt, set COMPLETE to non-nil and then provide a full PROMPT.
REM-CHAR is a character removed from crm-local-completion-map
and minibuffer-local-completion-map when performing completion.
In most cases it will be ?\s.
The brackets used are controlled by the string values of LEFTBRACE and RIGHTBRACE.
PREDICATE, REQUIRE-MATCH, INITIAL-INPUT, HIST, DEF,
INHERIT-INPUT-METHOD are passed to multi-prompt-key-value,
which see.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun TeX-arg-key-val (optional key-val-alist &optional prompt complete
rem-char leftbrace rightbrace
predicate require-match
initial-input hist def
inherit-input-method)
"Prompt for keys and values in KEY-VAL-ALIST.
Insert the given value as a TeX macro argument. If OPTIONAL is
non-nil, insert it as an optional argument. KEY-VAL-ALIST is an
alist. The car of each element should be a string representing a
key and the optional cdr should be a list with strings to be used
as values for the key. Refer to `TeX-read-key-val' for more
about KEY-VAL-ALIST.
PROMPT replaces the standard one where \\=' (k=v): \\=' is
appended to it. If you want the full control over the prompt,
set COMPLETE to non-nil and then provide a full PROMPT.
REM-CHAR is a character removed from `crm-local-completion-map'
and `minibuffer-local-completion-map' when performing completion.
In most cases it will be ?\\s.
The brackets used are controlled by the string values of
LEFTBRACE and RIGHTBRACE.
PREDICATE, REQUIRE-MATCH, INITIAL-INPUT, HIST, DEF,
INHERIT-INPUT-METHOD are passed to `multi-prompt-key-value',
which see."
(let ((TeX-arg-opening-brace (or leftbrace TeX-arg-opening-brace))
(TeX-arg-closing-brace (or rightbrace TeX-arg-closing-brace))
(crm-local-completion-map
(if rem-char (remove (assoc rem-char crm-local-completion-map)
crm-local-completion-map)
crm-local-completion-map))
(minibuffer-local-completion-map
(if rem-char (remove (assoc rem-char minibuffer-local-completion-map)
minibuffer-local-completion-map)
minibuffer-local-completion-map)))
(TeX-argument-insert
(TeX-read-key-val optional key-val-alist prompt complete
predicate require-match initial-input
hist def inherit-input-method)
optional)))