GNU bug report logs - #3122
Error saving commit messages for bazaar (bzr).

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Novimir Pablant <mir@HIDDEN>; dated Sun, 26 Apr 2009 23:05:05 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug reassigned from package `emacs' to `emacs,w32'. Request was from Glenn Morris <rgm@HIDDEN> to control@HIDDEN. Full text available.

Message received at 3122@HIDDEN:


Received: (at 3122) by emacsbugs.donarmstrong.com; 29 Apr 2009 20:30:27 +0000
From monnier@HIDDEN Wed Apr 29 13:30:27 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3TKUECN032600
	for <3122@HIDDEN>; Wed, 29 Apr 2009 13:30:16 -0700
Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177])
	by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n3TKTi3h027038;
	Wed, 29 Apr 2009 16:29:45 -0400
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id 805713A96D; Wed, 29 Apr 2009 16:29:43 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Novimir Pablant <mir@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 3122 <at> debbugs.gnu.org
Subject: Re: bug#3122: Error saving commit messages for bazaar (bzr).
Message-ID: <jwvzldzyzl6.fsf-monnier+emacsbugreports@HIDDEN>
References: <49F4E687.4010108@HIDDEN>
	<jwvr5zeu9ee.fsf-monnier+emacsbugreports@HIDDEN>
	<49F5482D.3020804@HIDDEN> <83vdoqdkdv.fsf@HIDDEN>
	<49F7EC92.9070001@HIDDEN>
Date: Wed, 29 Apr 2009 16:29:43 -0400
In-Reply-To: <49F7EC92.9070001@HIDDEN> (Novimir Pablant's message of
	"Tue, 28 Apr 2009 22:58:42 -0700")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV3264=0

> 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.

I see, yes, this is a problem linked to using a aprogram written with
a POSIXy mindset on an OS that does not intend to comply with POSIX.
A fix should come up soonish,


        Stefan




Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3122; Package emacs. Full text available.

Message received at 3122@HIDDEN:


Received: (at 3122) by emacsbugs.donarmstrong.com; 29 Apr 2009 19:02:23 +0000
From mir@HIDDEN Wed Apr 29 12:02:23 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.0 required=4.0 tests=HAS_BUG_NUMBER,
	IMPRONONCABLE_2 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from artemis.gat.com (artemis.gat.com [192.73.7.124])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3TJ2KGJ006360
	for <3122@HIDDEN>; Wed, 29 Apr 2009 12:02:21 -0700
X-Envelope-From: mir@HIDDEN
X-Envelope-To: monnier@HIDDEN
Received: From smtp.gat.com (192.73.7.121) by artemis.gat.com (MAILFOUNDRY) id P+VxbjTwEd6jrwAw; Wed, 29 Apr 2009 19:02:13 -0000 (GMT)
Received: from [198.129.105.168] (lnx-n-antoniuk.gat.com [198.129.105.168])
	by smtp.gat.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n3TJ2CO4025361;
	Wed, 29 Apr 2009 12:02:12 -0700
Message-ID: <49F8A449.3020905@HIDDEN>
Date: Wed, 29 Apr 2009 12:02:33 -0700
From: Novimir Pablant <mir@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
CC: 3122 <at> debbugs.gnu.org, monnier@HIDDEN
Subject: Re: bug#3122: Error saving commit messages for bazaar (bzr).
References: <49F4E687.4010108@HIDDEN> <jwvr5zeu9ee.fsf-monnier+emacsbugreports@HIDDEN> <49F5482D.3020804@HIDDEN> <83vdoqdkdv.fsf@HIDDEN> <49F7EC92.9070001@HIDDEN> <83hc08djlc.fsf@HIDDEN>
In-Reply-To: <83hc08djlc.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Here is the result:

(nil 1 "amicitas" "None" (18935 57961) (18935 57961) (18935 55764) 15789 
"-rw-rw-rw-" nil (768 1 . 15292) 1830808)


I dug a little into the bazaar code to see what was actually being done 
to that file.  I didn't really have the time to actually get my head 
around the bzr code but I think what is being called is:


LOCK_SH = 0 # the default
LOCK_EX = win32con.LOCKFILE_EXCLUSIVE_LOCK
LOCK_NB = win32con.LOCKFILE_FAIL_IMMEDIATELY

lockmode = LOCK_SH + LOCK_NB
win32file.LockFileEx(self.hfile, lockmode, 0, 0x7fff0000, overlapped)

This is what bzr considers a read_lock for win32.  For a writelock 
lockmode = LOCK_EX + LOCK_NB


Novi


On 4/29/2009 12:06 AM, Eli Zaretskii wrote:
>> Date: Tue, 28 Apr 2009 22:58:42 -0700
>> From: Novimir Pablant<mir@HIDDEN>
>> CC: 3122@HIDDEN, monnier@HIDDEN
>>
>> file-attributes gives:
>> (nil 1 1006 513 (18935 56919) (18935 56919) (18935 55764) 15788
>> "-rw-rw-rw-" nil (768 1 . 15292) 1830808)
>
> Sorry, I should have said
>
>    M-: (file-attributes
>     "c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate"
>     'string) RET
>
> (note the `string' optional argument).  It now seems that indeed the
> permissions are not the issue, but just to be sure, make sure what the
> above displays says that the user "amicitas" is displayed instead of
> the numerical ID 1006 as the owner of the file.
>




Acknowledgement sent to Novimir Pablant <mir@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3122; Package emacs. Full text available.

Message received at 3122@HIDDEN:


Received: (at 3122) by emacsbugs.donarmstrong.com; 29 Apr 2009 07:07:24 +0000
From eliz@HIDDEN Wed Apr 29 00:07:24 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from mtaout5.012.net.il (mtaout5.012.net.il [84.95.2.13])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3T77KJa009399
	for <3122@HIDDEN>; Wed, 29 Apr 2009 00:07:22 -0700
Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KIU00M00OXUL600@i_mtaout5.012.net.il> for 3122@HIDDEN; Wed, 29 Apr 2009 10:06:48 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([77.127.230.216]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KIU004KVP3B7241@i_mtaout5.012.net.il>; Wed, 29 Apr 2009 10:06:48 +0300 (IDT)
Date: Wed, 29 Apr 2009 10:06:55 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#3122: Error saving commit messages for bazaar (bzr).
In-reply-to: <49F7EC92.9070001@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Novimir Pablant <mir@HIDDEN>
Cc: 3122 <at> debbugs.gnu.org, monnier@HIDDEN
Reply-to: Eli Zaretskii <eliz@HIDDEN>
Message-id: <83hc08djlc.fsf@HIDDEN>
References: <49F4E687.4010108@HIDDEN> <jwvr5zeu9ee.fsf-monnier+emacsbugreports@HIDDEN> <49F5482D.3020804@HIDDEN> <83vdoqdkdv.fsf@HIDDEN> <49F7EC92.9070001@HIDDEN>

> Date: Tue, 28 Apr 2009 22:58:42 -0700
> From: Novimir Pablant <mir@HIDDEN>
> CC: 3122@HIDDEN, monnier@HIDDEN
> 
> file-attributes gives:
> (nil 1 1006 513 (18935 56919) (18935 56919) (18935 55764) 15788 
> "-rw-rw-rw-" nil (768 1 . 15292) 1830808)

Sorry, I should have said

  M-: (file-attributes
   "c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate"
   'string) RET

(note the `string' optional argument).  It now seems that indeed the
permissions are not the issue, but just to be sure, make sure what the
above displays says that the user "amicitas" is displayed instead of
the numerical ID 1006 as the owner of the file.




Acknowledgement sent to Eli Zaretskii <eliz@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3122; Package emacs. Full text available.

Message received at 3122@HIDDEN:


Received: (at 3122) by emacsbugs.donarmstrong.com; 29 Apr 2009 05:58:39 +0000
From mir@HIDDEN Tue Apr 28 22:58:39 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
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@HIDDEN>; Tue, 28 Apr 2009 22:58:37 -0700
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
Message-ID: <49F7EC92.9070001@HIDDEN>
Date: Tue, 28 Apr 2009 22:58:42 -0700
From: Novimir Pablant <mir@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
CC: 3122 <at> debbugs.gnu.org, monnier@HIDDEN
Subject: Re: bug#3122: Error saving commit messages for bazaar (bzr).
References: <49F4E687.4010108@HIDDEN> <jwvr5zeu9ee.fsf-monnier+emacsbugreports@HIDDEN> <49F5482D.3020804@HIDDEN> <83vdoqdkdv.fsf@HIDDEN>
In-Reply-To: <83vdoqdkdv.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


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<mir@HIDDEN>
>> Cc: 3122@HIDDEN
>>
>> 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.)
>




Acknowledgement sent to Novimir Pablant <mir@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3122; Package emacs. Full text available.

Message received at 3122@HIDDEN:


Received: (at 3122) by emacsbugs.donarmstrong.com; 27 Apr 2009 18:26:14 +0000
From eliz@HIDDEN Mon Apr 27 11:26:14 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from mtaout6.012.net.il (mtaout6.012.net.il [84.95.2.16])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3RIQ9Xj001781
	for <3122@HIDDEN>; Mon, 27 Apr 2009 11:26:11 -0700
Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KIR00G00V3KZB00@HIDDEN> for 3122@HIDDEN; Mon, 27 Apr 2009 21:25:11 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([77.127.175.232]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KIR00D91V5Z6M10@HIDDEN>; Mon, 27 Apr 2009 21:25:11 +0300 (IDT)
Date: Mon, 27 Apr 2009 21:25:16 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#3122: Error saving commit messages for bazaar (bzr).
In-reply-to: <49F5482D.3020804@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Novimir Pablant <mir@HIDDEN>, 3122 <at> debbugs.gnu.org
Cc: monnier@HIDDEN
Reply-to: Eli Zaretskii <eliz@HIDDEN>
Message-id: <83vdoqdkdv.fsf@HIDDEN>
References: <49F4E687.4010108@HIDDEN> <jwvr5zeu9ee.fsf-monnier+emacsbugreports@HIDDEN> <49F5482D.3020804@HIDDEN>

> Date: Sun, 26 Apr 2009 22:52:45 -0700
> From: Novimir Pablant <mir@HIDDEN>
> Cc: 3122@HIDDEN
> 
> 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.)




Acknowledgement sent to Eli Zaretskii <eliz@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3122; Package emacs. Full text available.

Message received at 3122@HIDDEN:


Received: (at 3122) by emacsbugs.donarmstrong.com; 27 Apr 2009 05:52:47 +0000
From mir@HIDDEN Sun Apr 26 22:52:47 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from pop-tawny.atl.sa.earthlink.net (pop-tawny.atl.sa.earthlink.net [207.69.195.67])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3R5qigc022353
	for <3122@HIDDEN>; Sun, 26 Apr 2009 22:52:45 -0700
Received: from user-0c9hepb.cable.mindspring.com ([24.152.187.43] helo=[192.168.1.58])
	by pop-tawny.atl.sa.earthlink.net with esmtp (Exim 3.36 #1)
	id 1LyJli-0007Vf-00; Mon, 27 Apr 2009 01:52:42 -0400
Message-ID: <49F5482D.3020804@HIDDEN>
Date: Sun, 26 Apr 2009 22:52:45 -0700
From: Novimir Pablant <mir@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2
MIME-Version: 1.0
To: Stefan Monnier <monnier@HIDDEN>
CC: 3122 <at> debbugs.gnu.org
Subject: Re: bug#3122: Error saving commit messages for bazaar (bzr).
References: <49F4E687.4010108@HIDDEN> <jwvr5zeu9ee.fsf-monnier+emacsbugreports@HIDDEN>
In-Reply-To: <jwvr5zeu9ee.fsf-monnier+emacsbugreports@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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")
 
insert-file-contents("c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate")
   eval((insert-file-contents 
"c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate"))
   eval-expression((insert-file-contents 
"c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate") 
nil)
   call-interactively(eval-expression nil nil)


Novimir


On 4/26/2009 8:02 PM, Stefan Monnier wrote:
>> vc-bzr-registered: IO error reading
>> c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate:
>> Permission denied
>
>> Bazaar version 1.13
>> Emacs version 22.3
>
> Can you try and reproduce this bug with the Emacs-23 pretest?
>
> Also, as far as I can tell, the code in vc-bzr.el (in Emacs-22.3 as
> well as in the upcoming Emacs-23) checks (file-readable-p dirstate)
> before reading the file, so could you check:
>
>    M-: (file-readable-p "c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate") RET
>
> to see if it indeed returns t rather than nil.  And then try
>
>    M-: (insert-file-contents "c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate") RET
>
> to check that it indeed signals the error you're seeing.
>
> If indeed, file-readable-p claims the file is readable, but
> insert-file-contents signals a "permission denied", then the problem
> seems to be in the C code (or even deeper such that there's no way for
> Emacs to predict that insert-file-contents will signal an error).
>
>
>          Stefan
>




Acknowledgement sent to Novimir Pablant <mir@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3122; Package emacs. Full text available.

Message received at 3122@HIDDEN:


Received: (at 3122) by emacsbugs.donarmstrong.com; 27 Apr 2009 03:02:51 +0000
From monnier@HIDDEN Sun Apr 26 20:02:51 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER,XIRONPORT
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3R32loo009382
	for <3122@HIDDEN>; Sun, 26 Apr 2009 20:02:48 -0700
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhwFALu99ElFxLKx/2dsb2JhbACBUMhvg3QFhTE
X-IronPort-AV: E=Sophos;i="4.40,251,1238990400"; 
   d="scan'208";a="37630492"
Received: from 69-196-178-177.dsl.teksavvy.com (HELO pastel.home) ([69.196.178.177])
  by ironport2-out.teksavvy.com with ESMTP; 26 Apr 2009 23:02:28 -0400
Received: by pastel.home (Postfix, from userid 20848)
	id 0BE0C7F10; Sun, 26 Apr 2009 23:02:28 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Novimir Pablant <mir@HIDDEN>
Cc: 3122 <at> debbugs.gnu.org
Subject: Re: bug#3122: Error saving commit messages for bazaar (bzr).
Message-ID: <jwvr5zeu9ee.fsf-monnier+emacsbugreports@HIDDEN>
References: <49F4E687.4010108@HIDDEN>
Date: Sun, 26 Apr 2009 23:02:28 -0400
In-Reply-To: <49F4E687.4010108@HIDDEN> (Novimir Pablant's message of
	"Sun, 26 Apr 2009 15:56:07 -0700")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

> vc-bzr-registered: IO error reading
> c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate:
> Permission denied

> Bazaar version 1.13
> Emacs version 22.3

Can you try and reproduce this bug with the Emacs-23 pretest?

Also, as far as I can tell, the code in vc-bzr.el (in Emacs-22.3 as
well as in the upcoming Emacs-23) checks (file-readable-p dirstate)
before reading the file, so could you check:

  M-: (file-readable-p "c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate") RET

to see if it indeed returns t rather than nil.  And then try

  M-: (insert-file-contents "c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate") RET

to check that it indeed signals the error you're seeing.

If indeed, file-readable-p claims the file is readable, but
insert-file-contents signals a "permission denied", then the problem
seems to be in the C code (or even deeper such that there's no way for
Emacs to predict that insert-file-contents will signal an error).


        Stefan




Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3122; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 26 Apr 2009 22:56:17 +0000
From mir@HIDDEN Sun Apr 26 15:56:17 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3QMuDSS009185
	for <submit@HIDDEN>; Sun, 26 Apr 2009 15:56:14 -0700
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1LyDGf-0000rf-3Y
	for bug-gnu-emacs@HIDDEN; Sun, 26 Apr 2009 18:56:13 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1LyDGZ-0000rL-Cb
	for bug-gnu-emacs@HIDDEN; Sun, 26 Apr 2009 18:56:11 -0400
Received: from [199.232.76.173] (port=37427 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1LyDGZ-0000rI-7R
	for bug-gnu-emacs@HIDDEN; Sun, 26 Apr 2009 18:56:07 -0400
Received: from pop-gadwall.atl.sa.earthlink.net ([207.69.195.61]:33219)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <mir@HIDDEN>)
	id 1LyDGY-0004pW-PT
	for bug-gnu-emacs@HIDDEN; Sun, 26 Apr 2009 18:56:06 -0400
Received: from user-0c9hepb.cable.mindspring.com ([24.152.187.43] helo=[192.168.1.58])
	by pop-gadwall.atl.sa.earthlink.net with esmtp (Exim 3.36 #1)
	id 1LyDGX-0007Tg-00
	for bug-gnu-emacs@HIDDEN; Sun, 26 Apr 2009 18:56:05 -0400
Message-ID: <49F4E687.4010108@HIDDEN>
Date: Sun, 26 Apr 2009 15:56:07 -0700
From: Novimir Pablant <mir@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2
MIME-Version: 1.0
To: bug-gnu-emacs@HIDDEN
Subject: Error saving commit messages for bazaar (bzr).
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1)



Unable to use emacs to edit commit message for bazaar.  I cannot save 
the buffer for the commit message.

On my system I have the EDITOR environmental variable set to:
C:\Programs\text\emacs-22.3\bin\emacs.exe

I then type:
bzr commit

Emacs opens and I type a commit message. When I try to save I get the 
following error message:

vc-bzr-registered: IO error reading 
c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate: 
Permission denied

Bazaar version 1.13
Emacs version 22.3


In GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
  of 2008-09-06 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: ENU
   locale-coding-system: cp1252
   default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
   show-paren-mode: t
   encoded-kbd-mode: t
   tooltip-mode: t
   tool-bar-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   unify-8859-on-encoding-mode: t
   utf-translate-cjk-mode: t
   auto-compression-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
<help-echo> s t u f f <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <tool-bar> <save-buffer> <help-echo>
<help-echo> <down-mouse-1> <help-echo> <help-echo>
<drag-mouse-1> <help-echo> <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-movement> <mouse-movement> <mouse-movement>
<mouse-movement> <mouse-movement> <mouse-movement>
<drag-mouse-1> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <edit> <copy> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-1> <help-echo> <menu-bar> <buffer> "*Messages*"
<help-echo> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-movement> <mouse-movement> <mouse-movement>
<mouse-movement> <mouse-movement> <drag-mouse-1> <help-echo>
<help-echo> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-1> <down-mouse-1> <mouse-1> M-x <help-echo>
r e p o r t - e m a c s - b u g <return>

Recent messages:
Loading encoded-kb...done
Loading font-lock...done
Loading paren...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading vc-bzr...done
vc-bzr-registered: IO error reading 
c:/library/code/python/annotatex/releases/test/.bzr/checkout/dirstate: 
Permission denied
Auto-saving...done
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done





Acknowledgement sent to Novimir Pablant <mir@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3122; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.