From ef5c80252f3ebaf44e429e5aaa1ac08609eb7398 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 10 Feb 2004 21:59:19 +0000 Subject: [PATCH] (diff): Add a revert-buffer function. --- lisp/diff.el | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.2