summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el
index fda91c047cd..085682a05a7 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -740,6 +740,8 @@ The buffer is not selected, just returned to the caller."
(after-find-file error (not nowarn))))
buf)))
+(defvar after-find-file-from-revert-buffer nil)
+
(defun after-find-file (&optional error warn noauto
after-find-file-from-revert-buffer)
"Called after finding a file and by the default revert function.