[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vc uses 1 set of switches for all back ends
From: |
Kevin Rodgers |
Subject: |
Re: vc uses 1 set of switches for all back ends |
Date: |
Mon, 07 Feb 2005 13:33:58 -0700 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
Jari Aalto wrote:
> The vc-checkin-switches is global. What you need is "local" switch for
> RCS, which you define in your environment. For bash:
>
> export RCSINIT='-x,v -zLT'
>
> or in ~/.emacs:
>
> (setenv "RCSINIT" "-x,v -zLT")
I think the point is that vc-rcs.el defines vc-rcs-checkin-switches (and
-checkout-) but doesn't reference them. So the obvious fix is to
replace references to vc-checkin-switches with vc-rcs-checkin-switches
(and -checkout-), in vc-rcs.el.
I don't know how a backend-independent switch could be useful anyway,
but if it is, they could both be used:
(let ((switches (append (if (stringp vc-checkin-switches)
(list vc-checkin-switches)
vc-checkin-switches)
(if (stringp vc-rcs-checkin-switches)
(list vc-rcs-checkin-switches)
vc-rcs-checkin-switches)))
--
Kevin Rodgers