Function: eudc-capf-complete
eudc-capf-complete is an autoloaded and byte-compiled function defined
in eudc-capf.el.gz.
Signature
(eudc-capf-complete)
Documentation
Email address completion function for completion-at-point-functions.
This function checks whether the current major mode is one of the
modes listed in eudc-capf-modes, and whether point is on a line
with a message header listing email recipients, that is, a line
whose beginning matches message-email-recipient-header-regexp,
and, if the check succeeds, searches for records matching the
words before point.
The return value is either nil when no match is found, or a
completion table as required for functions listed in
completion-at-point-functions.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/net/eudc-capf.el.gz
;; completion functions
;;;###autoload
(defun eudc-capf-complete ()
"Email address completion function for `completion-at-point-functions'.
This function checks whether the current major mode is one of the
modes listed in `eudc-capf-modes', and whether point is on a line
with a message header listing email recipients, that is, a line
whose beginning matches `message-email-recipient-header-regexp',
and, if the check succeeds, searches for records matching the
words before point.
The return value is either nil when no match is found, or a
completion table as required for functions listed in
`completion-at-point-functions'."
(if (and (seq-some #'derived-mode-p eudc-capf-modes)
(let ((mail-abbrev-mode-regexp message-email-recipient-header-regexp))
(mail-abbrev-in-expansion-header-p)))
(eudc-capf-message-expand-name)))