From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: Getting VC to notice updates to a file's status?
Date: Sat, 27 Feb 2010 19:37:33 +0100 [thread overview]
Message-ID: <87eik6y176.fsf@telefonica.net> (raw)
In-Reply-To: 40848.130.55.118.19.1267226067.squirrel@webmail.lanl.gov
"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.
prev parent reply other threads:[~2010-02-27 18:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 23:14 Getting VC to notice updates to a file's status? Davis Herring
2010-02-27 18:37 ` Óscar Fuentes [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eik6y176.fsf@telefonica.net \
--to=ofv@wanadoo.es \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.