From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andre Spiegel Newsgroups: gmane.emacs.devel Subject: Re: AW: AW: behavior of vc-recompute-state in combinationwithvc-cvs-stay-local is t Date: Tue, 30 Nov 2004 13:44:25 +0100 Message-ID: <1101818665.15479.37.camel@localhost> References: <1B3ACCFD5694A94DBA4E231402B0E9ED9DD6EA@mucmail1.sdm.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1101818686 32223 80.91.229.6 (30 Nov 2004 12:44:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Nov 2004 12:44:46 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 30 13:44:41 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CZ7N2-0003vt-00 for ; Tue, 30 Nov 2004 13:44:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CZ7WU-0000bQ-Ee for ged-emacs-devel@m.gmane.org; Tue, 30 Nov 2004 07:54:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CZ7W2-0000ZZ-7x for emacs-devel@gnu.org; Tue, 30 Nov 2004 07:53:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CZ7Vy-0000XE-Rq for emacs-devel@gnu.org; Tue, 30 Nov 2004 07:53:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CZ7Vy-0000X4-O6 for emacs-devel@gnu.org; Tue, 30 Nov 2004 07:53:54 -0500 Original-Received: from [193.113.160.14] (helo=mail.o2.co.uk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CZ7MV-0005ZP-Jz for emacs-devel@gnu.org; Tue, 30 Nov 2004 07:44:07 -0500 Original-Received: from [217.231.186.110] (217.231.186.110) by mail.o2.co.uk (7.0.028) (authenticated as andre.spiegel@o2online.de) id 4196D61C0036E319; Tue, 30 Nov 2004 12:41:30 +0000 Original-To: klaus.berndl@sdm.de In-Reply-To: <1B3ACCFD5694A94DBA4E231402B0E9ED9DD6EA@mucmail1.sdm.de> X-Mailer: Evolution 2.0.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30532 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30532 On Tue, 2004-11-30 at 13:21 +0100, klaus.berndl@sdm.de wrote: > >Function vc-state uses a cached value of the vc-state property (via > >vc-file-getprop). This value gets recomputed in the course of > >revert-buffer, which is a sensible thing to do, I would think? > > Yes, seems to be sensible... but how is this done - i took a look > at after-revert-hook, but no special entry for vc - so how VC ensures > that the cached value is recomputed by revert-buffer? It happens in vc-find-file-hook, which clears all the properties. Also, when finding a CVS-controlled file, that immediately yields the new value for vc-state, from CVS/Entries. Aside: Please don't use HTML formatting when writing to emacs-devel. Also, questions such as this are perhaps better discussed in personal e-mail, since this is really just about understanding what the current code does.