revert-buffer-insert-file-contents-function

revert-buffer-insert-file-contents-function is a variable defined in `files.el'.
Its value is
revert-buffer-insert-file-contents--default-function

  • This variable's value is permanent if it is given a local binding.
  • This variable may be risky if used as a file-local variable.

Documentation:
Function to use to insert contents when reverting this buffer.
The function receives two arguments: the first the nominal file name to use;
the second is t if reading the auto-save file.

The function is responsible for updating (or preserving) point.

For historical reasons, a value of nil means to use the default function.
This should not be relied upon.