# HG changeset patch # User Richard M. Stallman # Date 737294752 0 # Node ID 209f745babd1f5d5a91479621300c649331c73fd # Parent 82797c755adca12efb6c121239a5e84031e7e1c8 (vc-version-diff): Don't move point in current buffer. diff -r 82797c755adc -r 209f745babd1 lisp/vc.el --- a/lisp/vc.el Thu May 13 05:28:14 1993 +0000 +++ b/lisp/vc.el Thu May 13 12:05:52 1993 +0000 @@ -775,15 +775,9 @@ (goto-char (point-min)) (set-buffer-modified-p nil) ) - (progn - (vc-backend-diff file rel1 rel2) - (goto-char (point-min)) - (if (equal (point-min) (point-max)) - (message "No changes to %s between %s and %s." file rel1 rel2) - (pop-to-buffer "*vc*") - (goto-char (point-min)) - ) - ) + (if (zerop (vc-backend-diff file rel1 rel2)) + (message "No changes to %s between %s and %s." file rel1 rel2) + (pop-to-buffer "*vc*") ) )