From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Kamens Newsgroups: gmane.emacs.bugs Subject: bug#11490: vc-next-action overwrites changes in non-checked-out RCS file Date: Wed, 16 May 2012 15:29:07 -0400 Message-ID: <4FB40003.3050502@kamens.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------030809060701060103020404" X-Trace: dough.gmane.org 1337196822 889 80.91.229.3 (16 May 2012 19:33:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 May 2012 19:33:42 +0000 (UTC) To: 11490@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 16 21:33:42 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 1SUjye-00016B-1H for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 May 2012 21:33:40 +0200 Original-Received: from localhost ([::1]:54368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjyd-0000Cw-9x for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 May 2012 15:33:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjxt-0008Qd-3Y for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:32:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUjxr-0004lH-Ad for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:32:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjxr-0004lC-77 for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:32:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SUjy1-00017c-Tq for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jonathan Kamens Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 May 2012 19:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13371967304245 (code B ref -1); Wed, 16 May 2012 19:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 May 2012 19:32:10 +0000 Original-Received: from localhost ([127.0.0.1]:58093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUjxB-00016M-HA for submit@debbugs.gnu.org; Wed, 16 May 2012 15:32:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53626) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUjux-00011Y-9g for submit@debbugs.gnu.org; Wed, 16 May 2012 15:29:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUjuf-0003Pe-Kr for submit@debbugs.gnu.org; Wed, 16 May 2012 15:29:34 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:34228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjuf-0003PU-Hn for submit@debbugs.gnu.org; Wed, 16 May 2012 15:29:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjud-0007Qb-Sj for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:29:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUjub-0003Nu-Mq for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:29:31 -0400 Original-Received: from jik3.kamens.brookline.ma.us ([128.177.28.63]:43939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjub-0003Jw-I6 for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:29:29 -0400 Original-Received: from [10.5.33.94] (206.83.68.9.ptr.us.xo.net [206.83.68.9]) (authenticated bits=0) by jik3.kamens.brookline.ma.us (8.13.8/8.13.8) with ESMTP id q4GJTKbN029298 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 16 May 2012 15:29:21 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120425 Thunderbird/13.0 X-Scanned-By: MIMEDefang 2.73 on 128.177.28.63 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Wed, 16 May 2012 15:32:04 -0400 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-Mailman-Approved-At: Wed, 16 May 2012 15:33:37 -0400 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:60079 Archived-At: This is a multi-part message in MIME format. --------------030809060701060103020404 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. This is Bad, Bad, Bad. It needs to check if there are non-checked-out changes and ask whether to preserve them. It used to do this. I have no idea why it's behaving differently now or when it started behaving this way, but it's clearly wrong and dangerous, given the potential to lose work. I lost a whole day of work recently as a result of this bug. Yeah, it was user error, but that's not really the point. It's easy to protect the user from losing work due to this editor, and it's something that Emacs used to do, so it should continue to do it. jik --------------030809060701060103020404 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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.

This is Bad, Bad, Bad. It needs to check if there are non-checked-out changes and ask whether to preserve them.

It used to do this. I have no idea why it's behaving differently now or when it started behaving this way, but it's clearly wrong and dangerous, given the potential to lose work.

I lost a whole day of work recently as a result of this bug. Yeah, it was user error, but that's not really the point. It's easy to protect the user from losing work due to this editor, and it's something that Emacs used to do, so it should continue to do it.

  jik

--------------030809060701060103020404--