aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/files.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 4b68d391ff5..28e9485b6e6 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1952,6 +1952,20 @@ which are the arguments that `revert-buffer' received.")
1952Gets two args, first the nominal file name to use, 1952Gets two args, first the nominal file name to use,
1953and second, t if reading the auto-save file.") 1953and second, t if reading the auto-save file.")
1954 1954
1955(defvar before-revert-hook nil
1956 "Normal hook for `revert-buffer' to run before reverting.
1957If `revert-buffer-function' is used to override the normal revert
1958mechanism, this hook is not used.")
1959
1960(defvar after-revert-hook nil
1961 "Normal hook for `revert-buffer' to run after reverting.
1962Note that the hook value that it runs is the value that was in effect
1963before reverting; that makes a difference if you have buffer-local
1964hook functions.
1965
1966If `revert-buffer-function' is used to override the normal revert
1967mechanism, this hook is not used.")
1968
1955(defun revert-buffer (&optional ignore-auto noconfirm) 1969(defun revert-buffer (&optional ignore-auto noconfirm)
1956 "Replace the buffer text with the text of the visited file on disk. 1970 "Replace the buffer text with the text of the visited file on disk.
1957This undoes all changes since the file was visited or saved. 1971This undoes all changes since the file was visited or saved.