[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: avoiding revert-buffer after vc-checkin
From: |
David Kastrup |
Subject: |
Re: avoiding revert-buffer after vc-checkin |
Date: |
Wed, 18 Jul 2007 23:21:56 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> After a vc-checkin the corresponding buffer is reverted, which is not
>> so convenient because the undo information is lost.
>
> Indeed. My own take on this problem is to change revert-buffer so that it
> doesn't throw away the undo info.
Revert-buffer throws away the undo info because usually after
revert-buffer the undo-info is useless.
> I understand that some people find this idea completely
> unacceptable, so maybe a good compromise is to just provide a way to
> tell revert-buffer not to throw away the undo info, and then use it
> in vc.el.
And how will you cater for CVS having replaced $Id: ...$ strings and
similar? How do you know which offsets to apply to the undo info in
order to compensate for that?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum