Function: LaTeX-completion-candidates-completing-read
LaTeX-completion-candidates-completing-read is a byte-compiled
function defined in latex.el.
Signature
(LaTeX-completion-candidates-completing-read COLLECTION &optional PROPS)
Documentation
Return completion candidates from COLLECTION based on buffer position.
COLLECTION is a list of strings. PROPS is a property list for
additional information as recognized by completion-extra-properties
and is appended to the return value.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.2.0/latex.el
(defun LaTeX-completion-candidates-completing-read (collection &optional props)
"Return completion candidates from COLLECTION based on buffer position.
COLLECTION is a list of strings. PROPS is a property list for
additional information as recognized by `completion-extra-properties'
and is appended to the return value."
(let ((end (point))
beg)
(save-excursion
(with-syntax-table (apply #'TeX-search-syntax-table
(LaTeX-completion-macro-delimiters))
(up-list -1))
(forward-char)
(skip-chars-forward "^a-zA-Z0-9\\\\" end)
(setq beg (point)))
(append (list beg end collection :exclusive 'no) props)))