From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: VC, read-only buffers for writable files Date: Thu, 24 Oct 2002 13:03:36 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200210241703.g9OH3bA15321@rum.cs.yale.edu> References: <200210221331.g9MDV3n21931@rum.cs.yale.edu> <200210230739.g9N7dex06199@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035479067 6409 80.91.224.249 (24 Oct 2002 17:04:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2002 17:04:27 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org, spiegel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184lPF-0001f8-00 for ; Thu, 24 Oct 2002 19:04:25 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 184lRW-0001vB-00 for ; Thu, 24 Oct 2002 19:06:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 184lP3-0007dx-00; Thu, 24 Oct 2002 13:04:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 184lOZ-00077o-00 for emacs-devel@gnu.org; Thu, 24 Oct 2002 13:03:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 184lOU-0006xm-00 for emacs-devel@gnu.org; Thu, 24 Oct 2002 13:03:40 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 184lOT-0006wK-00; Thu, 24 Oct 2002 13:03:37 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g9OH3bA15321; Thu, 24 Oct 2002 13:03:37 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8741 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8741 > Sorry that should have been `buffer'. > > > better that way for the user. More specifically, it makes it read-only > > if the file seems to be locked by another user. > > > > Under RCS, the file is read-only whenever the file is not locked by you. > > I think that is the right way to handle it. > > I also meant `buffer'. > > If the file is indeed read-only, then everything works as expected, > but the VC code also tries to make the buffer read-only when the file > is locked by someone else and yet is writable. > > I think that is correct--and useful. If VC is mistaken, you can use > C-x C-q to make the buffer writable. Problem is: it happens very rarely since RCS normally makes sure the file is not writable by anybody but the true user. And when it happens it's too often because VC is confused about the identity of the owner of the lock. Every few months a user complains about this behavior in VC and it's difficult to fix. Stefan