before-revert-hook

before-revert-hook is a variable defined in `files.el'.
Its value is
nil

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

Documentation:
Normal hook for `revert-buffer' to run before reverting.
The function `revert-buffer--default' runs this.
A customized `revert-buffer-function' need not run this hook.