GNU bug report logs - #19161
24.4; vc-mode reload on commit - don't jump to start of buffer

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Ed Avis <eda <at> waniasset.com>
Cc: "'19161 <at> debbugs.gnu.org'" <19161 <at> debbugs.gnu.org>
Subject: bug#19161: 24.4; vc-mode reload on commit - don't jump to start of buffer
Date: Thu, 11 Dec 2014 16:09:56 -0500
Version:25.1

> 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?

I installed a similar change in "master".  It doesn't preserve
line-number nor column number, but it keeps the point in the same place
in proportion to the changed text.

> 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.

I actually did it for all revert-buffer operations.


        Stefan




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.