summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/diff.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/diff.el b/lisp/diff.el
index c776e36dfdc..dab3c7ebff3 100644
--- a/lisp/diff.el
+++ b/lisp/diff.el
@@ -247,6 +247,9 @@ With prefix arg, prompt for diff switches."
'diff-parse-differences
nil nil nil nil nil nil no-async))
(set-buffer buf)
+ (set (make-local-variable 'revert-buffer-function)
+ `(lambda (ignore-auto noconfirm)
+ (diff ',old ',new ',switches ',no-async)))
(set (make-local-variable 'diff-old-file) old)
(set (make-local-variable 'diff-new-file) new)
(set (make-local-variable 'diff-old-temp-file) old-alt)