help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting VC to notice updates to a file's status?


From: Óscar Fuentes
Subject: Re: Getting VC to notice updates to a file's status?
Date: Sat, 27 Feb 2010 19:37:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

"Davis Herring" <herring@lanl.gov> writes:

> If I edit a file in Emacs, but then instead of committing it via vc (C-x v
> v), I do the commit in a shell, is there a way to ask VC to examine the
> file again to see what version it is (now) and to see that it's not
> modified?  `revert-buffer' seems to do this (but it loses the undo
> history), and C-x v v seemed to do it in versions prior to 23.

The next Emacs release checks the VC status every time the buffer is
saved. So you can write a letter, delete it, save and the VC status will
be reloaded.

Not elegant, but works and is faster than M-x revert-buffer, plus keeps
the undo history.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]