--- lisp/vc.el.~1.706.~ 2008-10-06 21:02:25.000000000 -0400 +++ lisp/vc.el 2008-10-25 17:49:35.000000000 -0400 @@ -1507,10 +1507,12 @@ ;; bindings are nicer for read only buffers. pcl-cvs does the ;; same thing. (setq buffer-read-only t) - (vc-exec-after `(vc-diff-finish ,(current-buffer) ',(when verbose - messages))) ;; Display the buffer, but at the end because it can change point. (pop-to-buffer (current-buffer)) + ;; Do this after pop-to-buffer, because it needs to see the proper window + ;; state if it runs immediately. -- rgr, 25-Oct-08. + (vc-exec-after `(vc-diff-finish ,(current-buffer) ',(when verbose + messages))) ;; In the async case, we return t even if there are no differences ;; because we don't know that yet. t)))