emacs-devel
[Top][All Lists]
Advanced

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

AW: AW: behavior of vc-recompute-state in combination withvc-cvs-stay-lo


From: klaus.berndl
Subject: AW: AW: behavior of vc-recompute-state in combination withvc-cvs-stay-local is t
Date: Tue, 30 Nov 2004 14:34:27 +0100



>One more note about vc-recompute-state:

>VC tries to handle CVS, RCS, SCCS, Arch, Subversion, and MetaCVS even if you
>don't have the corresponding software installed.  The idea is that you might
>visit a file under CVS control even if you don't have CVS.  So VC tried to
>only use the underlying programs when the user requests and action.

>vc-recompute-state is normally associated with an action (it's currently
>only called from vc-next-action), so it is free to call the
>underlying software.

>If your program uses vc-recompute-state blindly, it might cause errors
>because of files that are under the control of a revision control software
>which Emacs knows but which is not installed in the system.

Yes, a good hint and objection - but for these cases a call to
vc-recompute-state should fail with an error (e.g. because the
executable "cvs.exe" under Windows can n ot be found and therefore
the process-call "cvs status" fails.... and my program calls these
"check-state-function" with ignore-errors so the call returns in fact
nil for my program which indicates an unkown state and is displayed with
a ?-icon. What do you think - is this a satisfying approach?

Klaus


reply via email to

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