From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#8924: 23.3; Editing is rather difficult using vc with RCS backend Date: Sat, 25 Jun 2011 09:31:48 +0300 Message-ID: <83r56itoa3.fsf@gnu.org> References: <40C7B1BFC291ED4E9D10436D07736A3346F8B2DCC1@EXMAIL7.haas.uc.berkeley.edu> <8362nvvbeu.fsf@gnu.org> <40C7B1BFC291ED4E9D10436D07736A3346F8B2DDEB@EXMAIL7.haas.uc.berkeley.edu> <83wrgbta7w.fsf@gnu.org> <40C7B1BFC291ED4E9D10436D07736A3346F8B2DE20@EXMAIL7.haas.uc.berkeley.edu> <83tybft52b.fsf@gnu.org> <40C7B1BFC291ED4E9D10436D07736A3346F8B2DE5F@EXMAIL7.haas.uc.berkeley.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1308983554 1282 80.91.229.12 (25 Jun 2011 06:32:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2011 06:32:34 +0000 (UTC) Cc: 8924-done@debbugs.gnu.org To: Richard Stanton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 25 08:32:30 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 1QaMPq-0000Ei-H4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jun 2011 08:32:26 +0200 Original-Received: from localhost ([::1]:43839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaMPp-0005TR-4e for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jun 2011 02:32:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaMPU-0005Rx-LF for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2011 02:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaMPS-000057-Ru for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2011 02:32:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaMPS-00004r-IA for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2011 02:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QaMPS-0005jO-0H for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2011 02:32:02 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Jun 2011 06:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 8924 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 8924@debbugs.gnu.org, eliz@gnu.org Original-Received: via spool by 8924-done@debbugs.gnu.org id=D8924.130898351422013 (code D ref 8924); Sat, 25 Jun 2011 06:32:01 +0000 Original-Received: (at 8924-done) by debbugs.gnu.org; 25 Jun 2011 06:31:54 +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 1QaMPK-0005j0-0H for submit@debbugs.gnu.org; Sat, 25 Jun 2011 02:31:54 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QaMPH-0005in-DY for 8924-done@debbugs.gnu.org; Sat, 25 Jun 2011 02:31:52 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LNC00F00209EF00@a-mtaout20.012.net.il> for 8924-done@debbugs.gnu.org; Sat, 25 Jun 2011 09:31:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.152.149]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LNC00FOW24VCM10@a-mtaout20.012.net.il>; Sat, 25 Jun 2011 09:31:44 +0300 (IDT) In-reply-to: <40C7B1BFC291ED4E9D10436D07736A3346F8B2DE5F@EXMAIL7.haas.uc.berkeley.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 25 Jun 2011 02:32:02 -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:47451 Archived-At: > From: Richard Stanton > CC: "8924@debbugs.gnu.org" <8924@debbugs.gnu.org> > Date: Fri, 24 Jun 2011 13:46:43 -0700 > > I did a little more testing, and it looks like the problem is indeed a Cygwin vs. non-Cygwin issue. On first checking in the file, I reported that the buffer remains read/write while the file itself is read-only. It turns out there's a little more to it: > > I reported it being read-only after running the (Cygwin) ls command: > > C:\projects\test\version\rcstest>ls -l test.tex > -r-x------+ 1 stanton None 84 Jun 24 13:40 test.tex > > However, DOS doesn't see it as read-only, which explains why Emacs leaves the buffer writable: > > C:\projects\test\version\rcstest>attrib test.tex > A C:\projects\test\version\rcstest\test.tex > > If I manually set the file to read only using attrib +R, then reload the file into Emacs, > > a. The buffer is now read-only, and I can't edit it until I press C-x v v again to check it out. Now everything works OK. > > b. The $Id$ header issue has also gone away. > > So it seems to be an inconsistency between the way DOS and Cygwin keep track of file attributes. Yes, that figures. Cygwin uses NTFS ACLs to emulate Posix file permissions, and does not set the DOS Readonly attribute to match the ACLs. The native Emacs build does not pay attention to the NTFS ACLs, so it doesn't know the file was made read-only. I'm closing this bug report. > Now I just need to track down a working non-Cygwin version of RCS... I sent my binaries off-list.