unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andre Spiegel <spiegel@gnu.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
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	[thread overview]
Message-ID: <1101818665.15479.37.camel@localhost> (raw)
In-Reply-To: <1B3ACCFD5694A94DBA4E231402B0E9ED9DD6EA@mucmail1.sdm.de>

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.

      reply	other threads:[~2004-11-30 12:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-30 12:21 AW: AW: behavior of vc-recompute-state in combinationwithvc-cvs-stay-local is t klaus.berndl
2004-11-30 12:44 ` Andre Spiegel [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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1101818665.15479.37.camel@localhost \
    --to=spiegel@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).