diff options
author | Karl Heuer <[email protected]> | 1995-05-29 19:42:42 +0000 |
---|---|---|
committer | Karl Heuer <[email protected]> | 1995-05-29 19:42:42 +0000 |
commit | 5f76e7d492047bd9a96c374bbf61979f990f75cf (patch) | |
tree | c5b4e81bd92f55ccc356b43f8dfcbb5987dad40f /lisp/files.el | |
parent | eee20f6aa9b29c200667ad6174c2ba983c26aa9f (diff) |
(after-revert-hook, before-revert-hook): Add defvars.
Diffstat (limited to 'lisp/files.el')
-rw-r--r-- | lisp/files.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el index 4b68d391ff..28e9485b6e 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1952,6 +1952,20 @@ which are the arguments that `revert-buffer' received.") Gets two args, first the nominal file name to use, and second, t if reading the auto-save file.") +(defvar before-revert-hook nil + "Normal hook for `revert-buffer' to run before reverting. +If `revert-buffer-function' is used to override the normal revert +mechanism, this hook is not used.") + +(defvar after-revert-hook nil + "Normal hook for `revert-buffer' to run after reverting. +Note that the hook value that it runs is the value that was in effect +before reverting; that makes a difference if you have buffer-local +hook functions. + +If `revert-buffer-function' is used to override the normal revert +mechanism, this hook is not used.") + (defun revert-buffer (&optional ignore-auto noconfirm) "Replace the buffer text with the text of the visited file on disk. This undoes all changes since the file was visited or saved. |