From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Vangelis Evangelou" Newsgroups: gmane.emacs.bugs Subject: bug#4685: 23.1; vc-rcs doesn't recognize status when checkin-switch -l Date: Mon, 12 Oct 2009 09:27:30 +0100 Message-ID: <1FFB9BE9F48F45C99BC5EB7567F3E63F@RPCee224> References: <84pr8wgbho.fsf@email.unc.edu> <200910091825.n99IP12w000179@godzilla.ics.uci.edu> Reply-To: Vangelis Evangelou , 4685@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255337256 27109 80.91.229.12 (12 Oct 2009 08:47:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2009 08:47:36 +0000 (UTC) Cc: 4685@emacsbugs.donarmstrong.com To: "Dan Nicolaescu" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 12 10:47:27 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MxGYu-0000U8-1Y for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 10:47:24 +0200 Original-Received: from localhost ([127.0.0.1]:38123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxGYt-0005SO-49 for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 04:47:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxGYo-0005SA-BL for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 04:47:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxGYj-0005Rd-L6 for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 04:47:17 -0400 Original-Received: from [199.232.76.173] (port=56086 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxGYj-0005Ra-II for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 04:47:13 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38838) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MxGYi-0007nf-Kl for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 04:47:13 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9C8lAUb031313; Mon, 12 Oct 2009 01:47:10 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9C8Z4Sk029306; Mon, 12 Oct 2009 01:35:04 -0700 Resent-Date: Mon, 12 Oct 2009 01:35:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Vangelis Evangelou" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 12 Oct 2009 08:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4685 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4685-submit@emacsbugs.donarmstrong.com id=B4685.125533609128393 (code B ref 4685); Mon, 12 Oct 2009 08:35:04 +0000 Original-Received: (at 4685) by emacsbugs.donarmstrong.com; 12 Oct 2009 08:28:11 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mxpm.isis.unc.edu (mxp3.isis.unc.edu [152.2.2.161]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9C8S9b2028389 for <4685@emacsbugs.donarmstrong.com>; Mon, 12 Oct 2009 01:28:11 -0700 Original-Received: from smtp.unc.edu (smtpsrv2.isis.unc.edu [152.2.2.250]) by mxp3.isis.unc.edu (8.14.3/8.14.3) with ESMTP id n9C8S8Js010494; Mon, 12 Oct 2009 04:28:08 -0400 Original-Received: from RPCee224 (138-38-156-82.wireless.bath.ac.uk [138.38.156.82]) (authenticated bits=0) by smtp.unc.edu (8.14.3/8.14.3) with ESMTP id n9C8S41x005830; Mon, 12 Oct 2009 04:28:07 -0400 (EDT) X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-10-12_03:2009-09-29, 2009-10-12, 2009-10-11 signatures=0 X-Proofpoint-Spam-Details: rule=uncdefault_notspam policy=uncdefault score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-0910120019 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 12 Oct 2009 04:47:17 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31846 Archived-At: 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" To: "Evangelos Evangelou" Cc: <4685@emacsbugs.donarmstrong.com> 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 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@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. > >