Function: message-ecomplete-capf

message-ecomplete-capf is a byte-compiled function defined in message.el.gz.

Signature

(message-ecomplete-capf)

Documentation

Return completion data for email addresses in Ecomplete.

Meant for use on completion-at-point-functions.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
(defun message-ecomplete-capf ()
  "Return completion data for email addresses in Ecomplete.
Meant for use on `completion-at-point-functions'."
  (when (and (bound-and-true-p ecomplete-database)
             (fboundp 'ecomplete-completion-table)
             (message--in-tocc-p))
    (let ((end (save-excursion
                 (skip-chars-forward "^, \t\n")
                 (point)))
	  (start (save-excursion
                   (skip-chars-backward "^, \t\n")
                   (point))))
      `(,start ,end ,(ecomplete-completion-table 'mail)))))