GNU bug report logs - #8129
"File exists, but cannot be read" message on Windows with NT Emacs for .gpg files.

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; Severity: wishlist; Reported by: gavenko@HIDDEN; merged with #3829, #4077; dated Sun, 27 Feb 2011 12:42:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 3829 4077 8129. Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.

Message received at 8129 <at> debbugs.gnu.org:


Received: (at 8129) by debbugs.gnu.org; 27 Feb 2011 19:29:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 27 14:29:33 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PtmJ9-0006VQ-Rg
	for submit <at> debbugs.gnu.org; Sun, 27 Feb 2011 14:29:32 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1PtmJ8-0006VG-T8
	for 8129 <at> debbugs.gnu.org; Sun, 27 Feb 2011 14:29:31 -0500
Received: from localhost ([127.0.0.1]:42185)
	by fencepost.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1PtmJ1-0004H0-Ev; Sun, 27 Feb 2011 14:29:23 -0500
From: Glenn Morris <rgm@HIDDEN>
To: gavenko@HIDDEN
Subject: Re: bug#8129: "File exists,
	but cannot be read" message on Windows with NT Emacs for .gpg files.
References: <4D6A4664.7010406@HIDDEN>
X-Spook: csystems Sears Tower terrorist Maple enforcers
X-Ran: Ts6YB'/_j6]x=vp\')d9Qe@ijCIjgHf|V)hBbyM/c`or/1Ab52.9[rvBThO|xS=2"Qw!}\
X-Hue: red
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sun, 27 Feb 2011 14:29:23 -0500
In-Reply-To: <4D6A4664.7010406@HIDDEN> (Oleksandr Gavenko's message of
	"Sun, 27 Feb 2011 12:41:08 +0000")
Message-ID: <9fy6512s4s.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.3 (------)
X-Debbugs-Envelope-To: 8129
Cc: 8129 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.3 (------)

Oleksandr Gavenko wrote:

> I try open file with '.gpg' extension and get message:
>
>   File exists, but cannot be read

Perhaps this issue:

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3829




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8129; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Feb 2011 12:41:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 27 07:41:49 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ptfwb-0005ys-JQ
	for submit <at> debbugs.gnu.org; Sun, 27 Feb 2011 07:41:49 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <gavenkoa@HIDDEN>) id 1PtfwZ-0005yh-6I
	for submit <at> debbugs.gnu.org; Sun, 27 Feb 2011 07:41:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1PtfwO-0007Pe-I5
	for submit <at> debbugs.gnu.org; Sun, 27 Feb 2011 07:41:42 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:49548)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1PtfwO-0007PY-EP
	for submit <at> debbugs.gnu.org; Sun, 27 Feb 2011 07:41:36 -0500
Received: from [140.186.70.92] (port=35264 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PtfwI-0001G6-8O
	for bug-gnu-emacs@HIDDEN; Sun, 27 Feb 2011 07:41:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1PtfwB-0007J3-Ej
	for bug-gnu-emacs@HIDDEN; Sun, 27 Feb 2011 07:41:30 -0500
Received: from mail-ww0-f49.google.com ([74.125.82.49]:50799)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1PtfwB-0007IR-6r
	for bug-gnu-emacs@HIDDEN; Sun, 27 Feb 2011 07:41:23 -0500
Received: by wwj40 with SMTP id 40so891540wwj.30
	for <bug-gnu-emacs@HIDDEN>; Sun, 27 Feb 2011 04:41:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:message-id:date:from:reply-to:user-agent
	:mime-version:to:subject:content-type:content-transfer-encoding;
	bh=enUjncgF0OOqo248VdHmj8oQvpVvj6sJd2KMgxR7AYQ=;
	b=WumTA4rB/gTbjPzo3JnStp0vxdQBgjnCl2D8F3aBtawBFYHUVWtY57BZS9D1zIK2yA
	FJaRFyIDjbJfSvQ/IHRg5eG+AnGI4uUi4xWXz9CXNkaLpeAYEahjbVr7pQaYFX0wz9FC
	+MowIJEBmvC+jYt3ZFZfrbYx4brejjI1v6wGs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:reply-to:user-agent:mime-version:to:subject
	:content-type:content-transfer-encoding;
	b=wlpg3v3zZh4PaK78XT9WBUeTolH4+wVB8c7yVnwX85IErX5kOupfyz5wnruwIny8aj
	KeP1p3++yMWptXZHwfVLXCCq8eqSKDuiCKoTWQNwe3xcdeeP36HgwMobYYm06cHreOpf
	KG5C2cPKLhfR2tSLSnxTs1DPE1n/b52PqAmBU=
Received: by 10.216.164.69 with SMTP id b47mr3703291wel.79.1298810482108;
	Sun, 27 Feb 2011 04:41:22 -0800 (PST)
Received: from [46.202.132.44] (44-132-202-46.pool.ukrtel.net [46.202.132.44])
	by mx.google.com with ESMTPS id m6sm1355112wej.10.2011.02.27.04.41.19
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sun, 27 Feb 2011 04:41:21 -0800 (PST)
Message-ID: <4D6A4664.7010406@HIDDEN>
Date: Sun, 27 Feb 2011 12:41:08 +0000
From: Oleksandr Gavenko <gavenkoa@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB;
	rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: bug-gnu-emacs@HIDDEN
Subject: "File exists, but cannot be read" message on Windows with NT Emacs
	for .gpg files.
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 199.232.76.165
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: gavenko@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

I try open file with '.gpg' extension and get message:

   File exists, but cannot be read

and file content not shown.

This happen in 'runemacs.exe -q' version 23.1/23.2.
Emacs 22.3 and 21.4 have no this issue.

Problem come from 'e:/opt/emacs-23.2/lisp/files.el':

(defun after-find-file (&optional error warn noauto
				  after-find-file-from-revert-buffer
				  nomodes)
   (setq buffer-read-only (not (file-writable-p buffer-file-name)))
   (if noninteractive
       nil
     (let* (not-serious
	   (msg
	    (cond
	     ((not warn) nil)
	     ((and error (file-attributes buffer-file-name))
	      (setq buffer-read-only t)
	      "File exists, but cannot be read")

This function for .gpg file invoked with warn=t, error=t.

For other file ext it invoked as warn=t, error=nil <<==
so work good.

To workaround I try

   (fset 'epa-file 'text-mode)

as in 'auto-mode-alist':

    ("\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" nil epa-file)

without happiness.

-- 
Best regards!




Acknowledgement sent to gavenko@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8129; 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: Mon, 11 Jul 2016 03:15:02 UTC

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