GNU bug report logs -
#19161
24.4; vc-mode reload on commit - don't jump to start of buffer
Previous Next
Reported by: Ed Avis <eda <at> waniasset.com>
Date: Mon, 24 Nov 2014 11:34:01 UTC
Severity: normal
Merged with 19380
Found in version 24.4
Fixed in version 25.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #29 received at 19161 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> 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 <at> waniasset.com>
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
This bug report was last modified 10 years and 163 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.