Function: ecomplete-highlight-match-line
ecomplete-highlight-match-line is a byte-compiled function defined in
ecomplete.el.gz.
Signature
(ecomplete-highlight-match-line MATCHES LINE)
Source Code
;; Defined in /usr/src/emacs/lisp/ecomplete.el.gz
(defun ecomplete-highlight-match-line (matches line)
(with-temp-buffer
(insert matches)
(goto-char (point-min))
(forward-line line)
(save-restriction
(narrow-to-region (point) (point-at-eol))
(while (not (eobp))
;; Put the 'region face on any characters on this line that
;; aren't already highlighted.
(unless (get-text-property (point) 'face)
(put-text-property (point) (1+ (point)) 'face 'highlight))
(forward-char 1)))
(buffer-string)))