summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-01-18 19:13:11 +0000
committerRichard M. Stallman <rms@gnu.org>1994-01-18 19:13:11 +0000
commitfb6208a6aab5ec8482894e6d7b063f02cdc2e464 (patch)
treec166c0ec58a577afc584834923addfa2dbf7fc9e
parente4b93bab487214aa3ed98629d6d24aef28973b6e (diff)
downloademacs-fb6208a6aab5ec8482894e6d7b063f02cdc2e464.tar.gz
(revert-buffer): Run after-revert-hook.
-rw-r--r--lisp/files.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 457a8e58a88..ad797857e6e 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1724,7 +1724,9 @@ Optional second argument NOCONFIRM means don't ask for confirmation at
all.
If the value of `revert-buffer-function' is non-nil, it is called to
-do the work."
+do the work.
+
+The normal hook `after-revert-hook' is run at the end of `revert-buffer'."
;; I admit it's odd to reverse the sense of the prefix argument, but
;; there is a lot of code out there which assumes that the first
;; argument should be t to avoid consulting the auto-save file, and
@@ -1774,7 +1776,8 @@ do the work."
(insert-file-contents file-name (not auto-save-p))))
(goto-char (min opoint (point-max)))
(after-find-file nil nil t)
- t)))))
+ t))))
+ (run-hooks 'after-revert-hook))
(defun recover-file (file)
"Visit file FILE, but get contents from its last auto-save file."