Function: completion-list-candidate-at-point
completion-list-candidate-at-point is a byte-compiled function defined
in simple.el.gz.
Signature
(completion-list-candidate-at-point &optional PT)
Documentation
Candidate string and bounds at PT in completions buffer.
The return value has the format (STR BEG END). The optional argument PT defaults to (point).
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun completion-list-candidate-at-point (&optional pt)
"Candidate string and bounds at PT in completions buffer.
The return value has the format (STR BEG END).
The optional argument PT defaults to (point)."
(setq pt (or pt (point)))
(when (cond
((and (/= pt (point-max))
(get-text-property pt 'completion--string))
(incf pt))
((and (/= pt (point-min))
(get-text-property (1- pt) 'completion--string))))
(setq pt (or (previous-single-property-change pt 'completion--string) pt))
(list (get-text-property pt 'completion--string) pt
(or (next-single-property-change pt 'completion--string)
(point-max)))))