changeset 53916:060c23cbd940

(diff): Add a revert-buffer function.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 10 Feb 2004 21:59:19 +0000
parents 8f2eb0390cdc
children 04ab10f25d5c
files lisp/diff.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/diff.el	Tue Feb 10 21:37:35 2004 +0000
+++ b/lisp/diff.el	Tue Feb 10 21:59:19 2004 +0000
@@ -247,6 +247,9 @@
 				  '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)