]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc.el (vc-diff-internal): Set `revert-buffer-function'
authorJuri Linkov <juri@jurta.org>
Thu, 24 Jun 2010 21:38:07 +0000 (00:38 +0300)
committerJuri Linkov <juri@jurta.org>
Thu, 24 Jun 2010 21:38:07 +0000 (00:38 +0300)
buffer-locally to lambda that re-runs the vc diff command.  (Bug#6447)

lisp/ChangeLog
lisp/vc/vc.el

index 23d7045532ceb6e53780cacf074df42a439c9476..6e19fb7b650281c535022339a65475b4f8e2cb24 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-24  Juri Linkov  <juri@jurta.org>
+
+       * vc/vc.el (vc-diff-internal): Set `revert-buffer-function'
+       buffer-locally to lambda that re-runs the vc diff command.
+       (Bug#6447)
+
 2010-06-24  Chong Yidong  <cyd@stupidchicken.com>
 
        * kmacro.el (kmacro-call-macro): Don't issue hint message if the
index 0d6584fb343b5aee1c6d9b788091dcbc574286c5..ae3f6a0ed38985615915936b613de9d4b1f1df32 100644 (file)
@@ -1547,6 +1547,9 @@ returns t if the buffer had changes, nil otherwise."
           (message "%s" (cdr messages))
           nil)
       (diff-mode)
+      (set (make-local-variable 'revert-buffer-function)
+          `(lambda (ignore-auto noconfirm)
+             (vc-diff-internal ,async ',vc-fileset ,rev1 ,rev2 ,verbose)))
       ;; Make the *vc-diff* buffer read only, the diff-mode key
       ;; bindings are nicer for read only buffers. pcl-cvs does the
       ;; same thing.