From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: Getting VC to notice updates to a file's status? Date: Sat, 27 Feb 2010 19:37:33 +0100 Message-ID: <87eik6y176.fsf@telefonica.net> References: <40848.130.55.118.19.1267226067.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267295906 26811 80.91.229.12 (27 Feb 2010 18:38:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Feb 2010 18:38:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 27 19:38:17 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NlRYK-0007Vl-Vu for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Feb 2010 19:38:13 +0100 Original-Received: from localhost ([127.0.0.1]:46311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlRYK-0007c4-Bm for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Feb 2010 13:38:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlRXv-0007aN-Ds for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 13:37:47 -0500 Original-Received: from [140.186.70.92] (port=46783 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlRXu-0007Zj-MR for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 13:37:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NlRXu-00034M-8e for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 13:37:46 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:59003) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlRXu-00034F-1F for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 13:37:46 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NlRXt-0007Kq-3l for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 19:37:45 +0100 Original-Received: from 83.32.115.245 ([83.32.115.245]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Feb 2010 19:37:45 +0100 Original-Received: from ofv by 83.32.115.245 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Feb 2010 19:37:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 83.32.115.245 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) Cancel-Lock: sha1:bggjTuwrtqgZHFp5FNC9AzFqbLc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72219 Archived-At: "Davis Herring" 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.