unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Novimir Pablant <mir@amicitas.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 3122@emacsbugs.donarmstrong.com
Subject: bug#3122: Error saving commit messages for bazaar (bzr).
Date: Tue, 28 Apr 2009 22:58:42 -0700	[thread overview]
Message-ID: <49F7EC92.9070001@amicitas.com> (raw)
In-Reply-To: <83vdoqdkdv.fsf@gnu.org>


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@amicitas.com>
>> 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.)
>






  reply	other threads:[~2009-04-29  5:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-26 22:56 bug#3122: Error saving commit messages for bazaar (bzr) Novimir Pablant
2009-04-27  3:02 ` Stefan Monnier
2009-04-27  5:52   ` Novimir Pablant
2009-04-27 18:25     ` Eli Zaretskii
2009-04-29  5:58       ` Novimir Pablant [this message]
2009-04-29  7:06         ` Eli Zaretskii
2009-04-29 19:02           ` Novimir Pablant
2009-04-29 20:29         ` Stefan Monnier
2020-08-20 18:54 ` Lars Ingebrigtsen
2020-08-20 19:30   ` Eli Zaretskii
2020-08-20 19:43     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49F7EC92.9070001@amicitas.com \
    --to=mir@amicitas.com \
    --cc=3122@emacsbugs.donarmstrong.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).