From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andre Spiegel Newsgroups: gmane.emacs.devel Subject: Re: vc-mode permissions problems on NT Date: Tue, 09 Sep 2003 19:10:53 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <1063127161.542.10.camel@localhost> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1063129172 9597 80.91.224.253 (9 Sep 2003 17:39:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2003 17:39:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Sep 09 19:39:30 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19wmSg-00085y-00 for ; Tue, 09 Sep 2003 19:39:30 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19wmSh-0008AA-00 for ; Tue, 09 Sep 2003 19:39:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19wmRW-0001Ct-0b for emacs-devel@quimby.gnus.org; Tue, 09 Sep 2003 13:38:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19wm8t-0002L9-HG for emacs-devel@gnu.org; Tue, 09 Sep 2003 13:19:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19wm59-0001Js-9N for emacs-devel@gnu.org; Tue, 09 Sep 2003 13:15:12 -0400 Original-Received: from [193.113.160.14] (helo=mail.o2.co.uk) by monty-python.gnu.org with esmtp (Exim 4.22) id 19wm1C-0008K7-L4 for emacs-devel@gnu.org; Tue, 09 Sep 2003 13:11:06 -0400 Original-Received: from [217.81.112.102] (217.81.112.102) by mail.o2.co.uk (7.0.020) (authenticated as 01792247376@o2online.de) id 3F4D4E7A00319563; Tue, 9 Sep 2003 18:06:02 +0100 Original-To: David Abrahams In-Reply-To: X-Mailer: Ximian Evolution 1.4.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16241 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16241 On Tue, 2003-09-09 at 17:08, David Abrahams wrote: > I normally have CVSREAD set in my environment so that files are > checked out read-only by default. After building emacs from the CVS > HEAD as of a few days ago, `C-x v v' on an *un-edited* write-protected > file under source control yields the following messages: > > File is edited but read-only; making it writable > File is under version-control; use C-x v v to check in/out I think a quick workaround might be to set vc-stay-local to nil, and maybe also vc-cvs-stay-local to nil. This will cause VC not to rely on its timestamp heuristics, and do a real "cvs status" during C-x v v. I cannot reproduce your actual problem over here, but I have some guesses. Is this with a local repository, or a remote one? Does the problem happen for every file, even when it's freshly checked out from CVS? Before you do anything with the file in Emacs, do the timestamp in CVS/Entries and the file's modification time agree? When you visit the file in Emacs (without doing anything yet), does the modeline show the file as edited ("CVS:x.xx") or up-to-date ("CVS-x.xx")? I have a suspicion that this might be related to the libc problem we've recently seen, where file's modification times are incorrectly set to 1970-01-01. If you see anything along these lines, please also let me know.