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

Previous Next

Package: emacs;

Reported by: gavenko <at> bifit.com.ua

Date: Sun, 27 Feb 2011 12:42:02 UTC

Severity: wishlist

Tags: fixed

Merged with 3829, 4077

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8129 in the body.
You can then email your comments to 8129 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8129; Package emacs. (Sun, 27 Feb 2011 12:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to gavenko <at> bifit.com.ua:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 27 Feb 2011 12:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Oleksandr Gavenko <gavenkoa <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: "File exists, but cannot be read" message on Windows with NT Emacs
	for .gpg files.
Date: Sun, 27 Feb 2011 12:41:08 +0000
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!




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8129; Package emacs. (Sun, 27 Feb 2011 19:30:03 GMT) Full text and rfc822 format available.

Message #8 received at 8129 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: gavenko <at> bifit.com.ua
Cc: 8129 <at> debbugs.gnu.org
Subject: Re: bug#8129: "File exists,
	but cannot be read" message on Windows with NT Emacs for .gpg files.
Date: Sun, 27 Feb 2011 14:29:23 -0500
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




Forcibly Merged 3829 4077 8129. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Mon, 11 Jul 2016 03:02:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 19:45:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 3829 <at> debbugs.gnu.org and Андрей Парамонов <cmr.pent <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 19:45:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 02 Sep 2020 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 237 days ago.

Previous Next


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