From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Novimir Pablant Newsgroups: gmane.emacs.bugs Subject: bug#3122: Error saving commit messages for bazaar (bzr). Date: Tue, 28 Apr 2009 22:58:42 -0700 Message-ID: <49F7EC92.9070001@amicitas.com> References: <49F4E687.4010108@amicitas.com> <49F5482D.3020804@amicitas.com> <83vdoqdkdv.fsf@gnu.org> Reply-To: Novimir Pablant , 3122@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240988712 29266 80.91.229.12 (29 Apr 2009 07:05:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2009 07:05:12 +0000 (UTC) Cc: 3122@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 29 09:05:01 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lz3qk-0000Ja-EW for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2009 09:04:58 +0200 Original-Received: from localhost ([127.0.0.1]:37328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lz3qk-0006DE-09 for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2009 03:04:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lz31Z-0003XI-Dz for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 02:12:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lz31V-0003WG-Ks for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 02:12:05 -0400 Original-Received: from [199.232.76.173] (port=47478 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lz31V-0003W7-HF for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 02:12:01 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:16274) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lz31V-0000sQ-4L for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 02:12:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lz31U-0000wN-66 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 02:12:00 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3T6Bp0H027769; Tue, 28 Apr 2009 23:11:51 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3T6563A025492; Tue, 28 Apr 2009 23:05:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Novimir Pablant Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Apr 2009 06:05:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3122 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3122-submit@emacsbugs.donarmstrong.com id=B3122.124098471923440 (code B ref 3122); Wed, 29 Apr 2009 06:05:06 +0000 Original-Received: (at 3122) by emacsbugs.donarmstrong.com; 29 Apr 2009 05:58:39 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pop-satin.atl.sa.earthlink.net (pop-satin.atl.sa.earthlink.net [207.69.195.63]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3T5wZVN023434 for <3122@emacsbugs.donarmstrong.com>; Tue, 28 Apr 2009 22:58:37 -0700 Original-Received: from user-0c9hepb.cable.mindspring.com ([24.152.187.43] helo=[192.168.1.58]) by pop-satin.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1Lz2oU-00010f-00; Wed, 29 Apr 2009 01:58:34 -0400 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 In-Reply-To: <83vdoqdkdv.fsf@gnu.org> X-detected-kernel: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Resent-Date: Wed, 29 Apr 2009 02:12:05 -0400 X-Mailman-Approved-At: Wed, 29 Apr 2009 03:04:54 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27530 Archived-At: file-attributes gives: (nil 1 1006 513 (18935 56919) (18935 56919) (18935 55764) 15788 "-rw-rw-rw-" nil (768 1 . 15292) 1830808) user-real-login-name gives: "amicitas" file-attributes gives the same result outside of a bzr commit. When not in the middle of the commit insert-file-contents works fine. I have tried accessing the file during a commit (after 'bzr commit' has been entered and while the emacs window is still open) with several other programs: notepad: Opens file. type (in cmd.exe): Error: The process cannot access the file because another process has locked a portion of the file. cygwin: Cannot copy (cp) or view (cat). explorer: Can copy. So this is a file lock issue and not a permissions issue. The file is indeed readable. While I don't know exactly what bazaar has set for that file it seams reasonable that it would lock it. Novi On 4/27/2009 11:25 AM, Eli Zaretskii wrote: >> Date: Sun, 26 Apr 2009 22:52:45 -0700 >> From: Novimir Pablant >> Cc: 3122@emacsbugs.donarmstrong.com >> >> I installed Emacs-23.0.92.1 and tried reproducing the error. >> >> I still get the error, but now the file is saved anyway. This is >> certainly an improvement. >> >> Still using emacs23 I tried the two commands: >> >> M-: (file-readable-p >> "c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate") RET >> >> Responds t >> >> M-: (insert-file-contents >> "c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate") RET >> >> Gives the error (from the Backtrace): >> Debugger entered--Lisp error: (error "IO error reading >> c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate: >> Permission denied") > > What does the following command produce? > > M-: (file-attributes > "c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate") RET > > Also, what does the following display? > > M-: (user-real-login-name) RET > > (I suspect that somehow this file was made unreadable for you, > i.e. private to another user. Assuming you are on Windows XP, the > test in file-readable-p does not take into account Windows native > security settings enforced through ACLs. So it could think the file > is readable by you, when it really isn't.) >