From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stanton Newsgroups: gmane.emacs.bugs Subject: bug#8924: 23.3; Editing is rather difficult using vc with RCS backend Date: Fri, 24 Jun 2011 09:03:42 -0700 Message-ID: <40C7B1BFC291ED4E9D10436D07736A3346F8B2DDEB@EXMAIL7.haas.uc.berkeley.edu> References: <40C7B1BFC291ED4E9D10436D07736A3346F8B2DCC1@EXMAIL7.haas.uc.berkeley.edu> <8362nvvbeu.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1308934527 27575 80.91.229.12 (24 Jun 2011 16:55:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2011 16:55:27 +0000 (UTC) Cc: "8924@debbugs.gnu.org" <8924@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 24 18:55:22 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qa9f8-0003wy-2a for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2011 18:55:22 +0200 Original-Received: from localhost ([::1]:44898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa9f6-0003ZG-Vd for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2011 12:55:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa9IT-0005NA-Jb for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2011 12:31:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qa9Ha-0003fd-Uz for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2011 12:31:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa9Ha-0003fS-Li for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2011 12:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qa9HZ-0001iB-Sn; Fri, 24 Jun 2011 12:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stanton Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Jun 2011 16:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8924 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8924-submit@debbugs.gnu.org id=B8924.13089330103992 (code B ref 8924); Fri, 24 Jun 2011 16:31:01 +0000 Original-Received: (at 8924) by debbugs.gnu.org; 24 Jun 2011 16:30:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qa9Gi-00011m-Og for submit@debbugs.gnu.org; Fri, 24 Jun 2011 12:30:09 -0400 Original-Received: from gateway-b.haas.berkeley.edu ([128.32.222.40]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qa8s1-000823-L4 for 8924@debbugs.gnu.org; Fri, 24 Jun 2011 12:04:39 -0400 X-SBRS: 2.9 X-IronPort-AV: E=Sophos;i="4.65,420,1304319600"; d="scan'208";a="18941713" Original-Received: from lb2-i.haas.berkeley.edu (HELO cas-a.haas.uc.berkeley.edu) ([128.32.222.31]) by gateway-b.haas.berkeley.edu with ESMTP/TLS/RC4-MD5; 24 Jun 2011 09:04:31 -0700 Original-Received: from EXMAIL7.haas.uc.berkeley.edu ([128.32.222.8]) by cas-a.haas.uc.berkeley.edu ([128.32.222.49]) with mapi; Fri, 24 Jun 2011 09:04:31 -0700 Thread-Topic: bug#8924: 23.3; Editing is rather difficult using vc with RCS backend Thread-Index: AcwyTzvWNnwGwoaOTCCuBBxr2j3kBQAOC2/A In-Reply-To: <8362nvvbeu.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-Mailman-Approved-At: Fri, 24 Jun 2011 12:30:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 24 Jun 2011 12:31:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:47437 Archived-At: > From: Eli Zaretskii [mailto:eliz@gnu.org] > Sent: Friday, June 24, 2011 2:15 AM > To: Richard Stanton > Cc: 8924@debbugs.gnu.org > Subject: Re: bug#8924: 23.3; Editing is rather difficult using vc with RC= S > backend >=20 > > From: Richard Stanton > > Date: Thu, 23 Jun 2011 14:20:43 -0700 > > > > I regularly use vc to keep track of versions of my edited files, > > primarily using CVS, but less often using RCS, mainly where there's > > just a single file I want to track edits to, and it's more convenient > > to keep the repository with the file. > > > > This all used to work fine (though I can't exactly recall what version > > of EMACS was the last under which all worked fine). However, while > > vc+CVS still works fine, vc+RCS acts in some rather strange ways that > > make using it inconvenient or even risky. >=20 > Did you also change the RCS port you are using, since the last time this > worked for you? If so, where did you get your port of RCS? Was that las= t > time also on Windows Vista, or on some other OS? Sensible question - I use the Cygwin port. I just tried downgrading from 1= .57-11 to 1.57-4 (the only older version I could find listed in the current= Cygwin setup list), but this didn't change anything. What version of RCS a= re you using? I do run Emacs on a Mac as well, so I'll see how this behaves next time I'm= using that machine. > > b. Now edit the file by adding a comment somewhere, say, after line 1, >=20 > Wait a moment: isn't the buffer read-only after the initial registration = and > check-in? It should be; it is for me (using RCS with Emacs 23.3 on Windo= ws > XP). If so, you cannot just add a comment; you need to check-out the fil= e > first, by typing "C-x v v" again. This checks out the file making it wri= table, and > then I can edit it. The buffer itself is not read-only, but the file seems to be. I can type wh= atever I want in the buffer, and only realize this when I next try to save = the file, but by then it's a bit late to be finding this out... > > % Here's a comment > > > > Save the file and then type C-x v v. This time, I get an error buffer > > telling me > > > > RCS/test.tex,v --> test.tex > > revision 1.1 (locked) > > co: writable test.tex exists; checkout aborted > > > > and again cannot check in the new file. >=20 > It works for me: I get a buffer where I need to type a checkin comment, a= nd > when I type C-c, RCS checks the file in for me, and I see "RCS-1.2" in th= e > mode line. As I'd expect. >=20 > > 2) The initial $Id$ line seems important here. If I do the same thing > > again, but do *not* include the initial % $Id$ line in the file, > > different things happen. >=20 > It's possible that the problem is with your username as RCS and Emacs > perceive it. Do you have USER or LOGNAME variables set in your > environment? If not, does it help to set one of them with the value retu= rned > by `user-login-name' function inside Emacs? Doesn't seem to change anything. Thanks for your suggestions.=20