From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#11490: vc-next-action overwrites changes in non-checked-out RCS file Date: Wed, 16 May 2012 16:12:40 -0400 Message-ID: References: <4FB40003.3050502@kamens.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1337199243 20211 80.91.229.3 (16 May 2012 20:14:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 May 2012 20:14:03 +0000 (UTC) Cc: 11490@debbugs.gnu.org To: Jonathan Kamens Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 16 22:14:02 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SUkbd-0004kA-Up for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 May 2012 22:13:58 +0200 Original-Received: from localhost ([::1]:39849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUkbd-00054o-AG for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 May 2012 16:13:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUkbZ-00053h-Mr for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 16:13:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUkbX-0008OF-TJ for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 16:13:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUkbX-0008Ns-PM for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 16:13:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SUkbh-0002rn-OI for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 16:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 May 2012 20:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11490-submit@debbugs.gnu.org id=B11490.133719919310953 (code B ref 11490); Wed, 16 May 2012 20:14:01 +0000 Original-Received: (at 11490) by debbugs.gnu.org; 16 May 2012 20:13:13 +0000 Original-Received: from localhost ([127.0.0.1]:58113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUkav-0002qc-8n for submit@debbugs.gnu.org; Wed, 16 May 2012 16:13:13 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:41397 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUkab-0002pt-Fe for 11490@debbugs.gnu.org; Wed, 16 May 2012 16:13:12 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SUkaO-00026q-IW; Wed, 16 May 2012 16:12:40 -0400 X-Spook: encryption NORAD number key Bosnia assassination analyzer X-Ran: aKwsl: (Jonathan Kamens's message of "Wed, 16 May 2012 15:29:07 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:60081 Archived-At: Jonathan Kamens wrote: > GNU Emacs 24.0.95.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.10) of > 2012-04-06 on x86-13.phx2.fedoraproject.org > > Make an RCS file writable with chmod +w without locking it. > > Make changes to the file. > > Type C-x v v. > > The file will be locked and checked out and your changes will be > overwritten. I cannot reproduce this. I did: mkdir foo cd foo mkdir RCS echo initial > file ci -u -t-foo file chmod +w file emacs-24.0.96 -Q file add some text to file C-x v v A log buffer appears. I enter some text and press C-c C-c. I am told the buffer is modified and prompted to save it. I do so. At this point, RCS returns an error: RCS/file,v <-- file ci: RCS/file,v: no lock set by gmorris for revision 1.1 The contents of the file on disk and in the Emacs buffer are unchanged (ie, the added text is still present). This was with RCS 5.7. I never normally use RCS, maybe I am missing something. Do you have a recipe starting from emacs -Q that shows the problem?