GNU bug report logs - #4685
23.1; vc-rcs doesn't recognize status when checkin-switch -l

Previous Next

Package: emacs;

Reported by: Evangelos Evangelou <vangelis <at> email.unc.edu>

Date: Fri, 9 Oct 2009 09:40:06 UTC

Severity: normal

Done: Dan Nicolaescu <dann <at> ics.uci.edu>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 4685 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Vangelis Evangelou" <vangelis <at> email.unc.edu>
To: "Dan Nicolaescu" <dann <at> ics.uci.edu>
Cc: <4685 <at> debbugs.gnu.org>
Subject: Re: bug#4685: 23.1; vc-rcs doesn't recognize status when checkin-switch -l
Date: Mon, 12 Oct 2009 09:27:30 +0100
Hello,

Thank you for your reply. Based on what you said I was able to fix the 
error by applying the setting below, although I am not sure if that's 
the best solution. Thanks.

(setq vc-checkin-hook
     '(lambda()
        (if (and (buffer-file-name) (eq (vc-backend 
(file-name-nondirectory buffer-file-name)) 'RCS))
            (shell-command (concat "rcs -U \"" (file-name-nondirectory 
buffer-file-name) "\"") "*vc*"))))




----- Original Message ----- 
From: "Dan Nicolaescu" <dann <at> ics.uci.edu>
To: "Evangelos Evangelou" <vangelis <at> email.unc.edu>
Cc: <4685 <at> debbugs.gnu.org>
Sent: Friday, October 09, 2009 7:25 PM
Subject: Re: bug#4685: 23.1; vc-rcs doesn't recognize status when 
checkin-switch -l


> Evangelos Evangelou <vangelis <at> email.unc.edu> writes:
>
>  > Please write in English if possible, because the Emacs maintainers
>  > usually do not have translators to read other languages for them.
>  >
>  > Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing 
> list,
>  > and to the gnu.emacs.bug news group.
>  >
>  > Please describe exactly what actions triggered the bug
>  > and the precise symptoms of the bug:
>  >
>  > It seems that emacs doesn't recognize the vc-status of the file 
> when I
>  > set the variable vc-rcs-checkin-switches to "-l". The first time I
>  > execute vc-next-action for checking in the file is checked in and 
> then
>  > checked out automatically because of the "-l" switch. The %% are 
> not
>  > present in the mode line. The second time I run vc-next-action it
>  > attempts to run co instead of ci. On the other hand, running
>  > vc-next-action through vc-dir doesn't seem to have a problem. I 
> only
>  > observed this in emacs 23; emacs 22 is also working as expected.
>
> I think that if you want to add -l to vc-rcs-checkin-switches, you 
> also
> need to do
>
> rcs -U
>
> on all your RCS files.  That way things are consistent and VC can 
> figure
> out what to do.
>
> 




This bug report was last modified 15 years and 275 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.