[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vc-state always calls heuristic function

From: Stefan Monnier
Subject: Re: vc-state always calls heuristic function
Date: Tue, 23 Nov 2004 15:44:25 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

> The next version of ECB (Emacs Code browser) will display the VC-state
> of sourcefiles with image-icons in its special browsable tree-windows.
> For this a function is needed to compute the VC-state of a file. Whic one
> is used is customizable in an option of ECB - and currently `vc-state' is
> used per default for the backend CVS, RCS and SCCS... and i have wondered
> if there is a function available which performs real checks not only
> heuristic - now i know such a function - thanks Stefan!
> I think i will not use vc-recompute-state per default because especially with
> remote repositories this can be very expensive - even the state-check is 
> performed stealthy and interruptable in the background as with ECB.

It's only interruptible with C-g, right?  I don't call that very "stealth"
if it forces me to hit C-g (or to wait for tens of seconds).

> But i want to mentionin the docstring of that ECB-option that there
> is another function `vc-recompute-state' a user can use if he works
> in a fast LAN and with a CVS-server in that LAN for example....

> understandable?

Please don't.  `vc-recompute-state' is an internal function, don't touch it,
don't use it.
There's vc-cvs-stay-local, it's customizable, it does what you want.
Don't use vc-cvs-stay-local (of course): just tell your users that if they
want fresh-but-slow state, they can tweak that variable.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]