]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff): Add a revert-buffer function.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 10 Feb 2004 21:59:19 +0000 (21:59 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 10 Feb 2004 21:59:19 +0000 (21:59 +0000)
lisp/diff.el

index c776e36dfdcbc2dcc866968a2fe0471c99764c14..dab3c7ebff33c5d3f68376eacfa33129081577c3 100644 (file)
@@ -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)