[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19161: 24.4; vc-mode reload on commit - don't jump to start of buffe
From: |
Ed Avis |
Subject: |
bug#19161: 24.4; vc-mode reload on commit - don't jump to start of buffer |
Date: |
Thu, 27 Nov 2014 11:28:24 +0000 |
Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>So, in your case, the "first changed byte" is at the "$Id" thingy, and
>if the last changed byte is somewhere further down in the middle of the
>file (or worse, near the end), then any marker (including "the point",
>and window-points) will be moved to either right before or right after
>the replaced text.
>
>We could do better, by doing an actual "diff" and then applying the
>patch, but someone would have to write it.
Surely the simplest fix is to save the current point (as a line number and
column number),
revert the file, and then put point back to where it was?
In the particular case of reverting after a version control checkin this would
give
more useful behaviour. I wouldn't advocate it for ordinary revert-buffer
operations.
--
Ed Avis <eda@waniasset.com>
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
bug#19161: 24.4; vc-mode reload on commit - don't jump to start of buffer, Glenn Morris, 2014/11/24