read-buffer-function is a variable defined in `C source code'.
Its value is
nil
This variable may be risky if used as a file-local variable.
Documentation:
If this is non-nil, `read-buffer' does its work by calling this function.
The function is called with the arguments passed to `read-buffer'.
You can customize this variable.