Variable: choose-completion-string-functions
choose-completion-string-functions is a variable defined in
simple.el.gz.
Value
nil
Documentation
Functions that may override the normal insertion of a completion choice.
These functions are called in order with three arguments: CHOICE - the string to insert in the buffer, BUFFER - the buffer in which the choice should be inserted, BASE-POSITION - where to insert the completion.
Functions should also accept and ignore a potential fourth argument, passed for backwards compatibility.
If a function in the list returns non-nil, that function is supposed to have inserted the CHOICE in the BUFFER, and possibly exited the minibuffer; no further functions will be called.
If all functions in the list return nil, that means to use the default method of inserting the completion in BUFFER.
Probably introduced at or before Emacs version 23.2.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defvar choose-completion-string-functions nil
"Functions that may override the normal insertion of a completion choice.
These functions are called in order with three arguments:
CHOICE - the string to insert in the buffer,
BUFFER - the buffer in which the choice should be inserted,
BASE-POSITION - where to insert the completion.
Functions should also accept and ignore a potential fourth
argument, passed for backwards compatibility.
If a function in the list returns non-nil, that function is supposed
to have inserted the CHOICE in the BUFFER, and possibly exited
the minibuffer; no further functions will be called.
If all functions in the list return nil, that means to use
the default method of inserting the completion in BUFFER.")