Function: reftex-index-complete-key
reftex-index-complete-key is an autoloaded and byte-compiled function
defined in reftex-index.el.gz.
Signature
(reftex-index-complete-key &optional TAG OPTIONAL INITIAL)
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-index.el.gz
;;;###autoload
(defun reftex-index-complete-key (&optional tag optional initial)
;; Read an index key, with completion.
;; Restrict completion table on index tag TAG.
;; OPTIONAL indicates if the arg is optional.
(let* ((table (reftex-sublist-nth
(symbol-value reftex-docstruct-symbol) 6
(lambda(x) (and (eq (car x) 'index)
(string= (nth 1 x) (or tag ""))))
t))
(prompt (concat "Index key" (if optional " (optional)" "") ": "))
(key (completing-read prompt table nil nil initial)))
key))