From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: vc-state always calls heuristic function Date: Tue, 23 Nov 2004 15:44:25 -0500 Message-ID: References: <1B3ACCFD5694A94DBA4E231402B0E9ED57AE59@mucmail1.sdm.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101242807 19111 80.91.229.6 (23 Nov 2004 20:46:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Nov 2004 20:46:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 23 21:46:33 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 1CWhYX-0002gy-00 for ; Tue, 23 Nov 2004 21:46:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWhhd-0002kn-Rh for ged-emacs-devel@m.gmane.org; Tue, 23 Nov 2004 15:55:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWhh9-0002jg-HD for emacs-devel@gnu.org; Tue, 23 Nov 2004 15:55:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWhh6-0002hk-3O for emacs-devel@gnu.org; Tue, 23 Nov 2004 15:55:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWhh5-0002h1-VP for emacs-devel@gnu.org; Tue, 23 Nov 2004 15:55:24 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CWhWo-0001Zi-4p for emacs-devel@gnu.org; Tue, 23 Nov 2004 15:44:46 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id D0BFA8282AB; Tue, 23 Nov 2004 15:44:43 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id B02414AC540; Tue, 23 Nov 2004 15:44:25 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 9C98A8CA69; Tue, 23 Nov 2004 15:44:25 -0500 (EST) Original-To: In-Reply-To: <1B3ACCFD5694A94DBA4E231402B0E9ED57AE59@mucmail1.sdm.de> (klaus berndl's message of "Tue, 23 Nov 2004 18:31:36 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca 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:30292 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30292 > 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? Yes. 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. Stefan