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: Sun, 26 Apr 2009 22:52:45 -0700 Message-ID: <49F5482D.3020804@amicitas.com> References: <49F4E687.4010108@amicitas.com> 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 1240819765 32520 80.91.229.12 (27 Apr 2009 08:09:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2009 08:09:25 +0000 (UTC) Cc: 3122@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 27 10:09:17 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 1LyLOj-0000tB-NG for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Apr 2009 09:37:06 +0200 Original-Received: from localhost ([127.0.0.1]:55064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyLOi-0004fy-K5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Apr 2009 03:37:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyK4M-0005kW-9y for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2009 02:11:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LyK4H-0005kJ-Py for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2009 02:11:58 -0400 Original-Received: from [199.232.76.173] (port=55566 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyK4H-0005kG-Nr for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2009 02:11:53 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37632) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LyK4H-0005CU-Ab for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2009 02:11:53 -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 n3R6Bocu028078; Sun, 26 Apr 2009 23:11:51 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3R6036u023657; Sun, 26 Apr 2009 23:00:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Novimir Pablant Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 27 Apr 2009 06:00:03 +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.124081156722359 (code B ref 3122); Mon, 27 Apr 2009 06:00:03 +0000 Original-Received: (at 3122) by emacsbugs.donarmstrong.com; 27 Apr 2009 05:52:47 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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@emacsbugs.donarmstrong.com>; Sun, 26 Apr 2009 22:52:45 -0700 Original-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 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: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 27 Apr 2009 02:11:58 -0400 X-Mailman-Approved-At: Mon, 27 Apr 2009 03:36:59 -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:27459 Archived-At: 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 >