completion-list-insert-choice-function

completion-list-insert-choice-function is a variable defined in `simple.el'.
Its value is
completion--replace

  • This variable may be risky if used as a file-local variable.

Documentation:
Function to use to insert the text chosen in *Completions*.
Called with three arguments (BEG END TEXT), it should replace the text
between BEG and END with TEXT. Expected to be set buffer-locally
in the *Completions* buffer.