 "
   (let ((diff-mode-shared-map (copy-keymap svn-status-diff-mode-map))
         major-mode mode-name)
-    (diff-mode)))
-
-(defun svn-status-diff-update ()
+    (diff-mode)
+    (setq revert-buffer-function 'svn-status-diff-update)))
+
+(defun svn-status-diff-update (arg noconfirm)
   "Rerun the last svn diff command and update the *svn-diff* buffer."
   (interactive)
   (svn-status-save-some-buffers)


(require 'easymenu)

(condition-case nil
    (progn
      (require 'diff-mode))


(when (not svn-status-diff-mode-map)
  (setq svn-status-diff-mode-map (copy-keymap diff-mode-shared-map))
  (define-key svn-status-diff-mode-map [?g] 'revert-buffer)
  (define-key svn-status-diff-mode-map [?s] 'svn-status-pop-to-status-buffer)
  (define-key svn-status-diff-mode-map [?w] 'svn-status-diff-save-current-defun-as-kill))

