diff options
| author | Richard M. Stallman | 1994-01-18 19:13:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-18 19:13:11 +0000 |
| commit | fb6208a6aab5ec8482894e6d7b063f02cdc2e464 (patch) | |
| tree | c166c0ec58a577afc584834923addfa2dbf7fc9e | |
| parent | e4b93bab487214aa3ed98629d6d24aef28973b6e (diff) | |
| download | emacs-fb6208a6aab5ec8482894e6d7b063f02cdc2e464.tar.gz emacs-fb6208a6aab5ec8482894e6d7b063f02cdc2e464.zip | |
(revert-buffer): Run after-revert-hook.
| -rw-r--r-- | lisp/files.el | 7 |
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 | |||
| 1724 | all. | 1724 | all. |
| 1725 | 1725 | ||
| 1726 | If the value of `revert-buffer-function' is non-nil, it is called to | 1726 | If the value of `revert-buffer-function' is non-nil, it is called to |
| 1727 | do the work." | 1727 | do the work. |
| 1728 | |||
| 1729 | The normal hook `after-revert-hook' is run at the end of `revert-buffer'." | ||
| 1728 | ;; I admit it's odd to reverse the sense of the prefix argument, but | 1730 | ;; I admit it's odd to reverse the sense of the prefix argument, but |
| 1729 | ;; there is a lot of code out there which assumes that the first | 1731 | ;; there is a lot of code out there which assumes that the first |
| 1730 | ;; argument should be t to avoid consulting the auto-save file, and | 1732 | ;; argument should be t to avoid consulting the auto-save file, and |
| @@ -1774,7 +1776,8 @@ do the work." | |||
| 1774 | (insert-file-contents file-name (not auto-save-p)))) | 1776 | (insert-file-contents file-name (not auto-save-p)))) |
| 1775 | (goto-char (min opoint (point-max))) | 1777 | (goto-char (min opoint (point-max))) |
| 1776 | (after-find-file nil nil t) | 1778 | (after-find-file nil nil t) |
| 1777 | t))))) | 1779 | t)))) |
| 1780 | (run-hooks 'after-revert-hook)) | ||
| 1778 | 1781 | ||
| 1779 | (defun recover-file (file) | 1782 | (defun recover-file (file) |
| 1780 | "Visit file FILE, but get contents from its last auto-save file." | 1783 | "Visit file FILE, but get contents from its last auto-save file." |