* Getting VC to notice updates to a file's status?
@ 2010-02-26 23:14 Davis Herring
2010-02-27 18:37 ` Óscar Fuentes
0 siblings, 1 reply; 2+ messages in thread
From: Davis Herring @ 2010-02-26 23:14 UTC (permalink / raw)
To: Emacs Help
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.
Thanks,
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Getting VC to notice updates to a file's status?
2010-02-26 23:14 Getting VC to notice updates to a file's status? Davis Herring
@ 2010-02-27 18:37 ` Óscar Fuentes
0 siblings, 0 replies; 2+ messages in thread
From: Óscar Fuentes @ 2010-02-27 18:37 UTC (permalink / raw)
To: help-gnu-emacs
"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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-27 18:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26 23:14 Getting VC to notice updates to a file's status? Davis Herring
2010-02-27 18:37 ` Óscar Fuentes
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.