unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Андрей Парамонов" <cmr.pent@gmail.com>
Cc: 3829@debbugs.gnu.org, rfrancoise@debian.org
Subject: bug#3829: 23.0.96; Cannot read gpg file
Date: Fri, 30 Aug 2019 13:19:57 +0200	[thread overview]
Message-ID: <87zhjqgasi.fsf@gnus.org> (raw)
In-Reply-To: <5f0660120907120547o33e6480an6eab53a9a79b4a2e@mail.gmail.com> ("Андрей Парамонов"'s message of "Sun, 12 Jul 2009 16:47:28 +0400")

Андрей Парамонов <cmr.pent@gmail.com> writes:

> To reproduce:
>
> 0) emacs -Q
>
> 1) C-x C-f attached file
>
> 2) Emacs says:
> File exists, but cannot be read

(The user included a trusted.gpg file; which is a key ring.)

The problem here is that there are two common uses of the .gpg suffix.

Emacs assumes that all files that end with .gpg are encrypted files, and
will error out dramatically when trying to read those files.  The only
way the user has to look at them is with `M-x find-file-literally'.

But .gpg is also a common suffix for key ring files.

Emacs could be more helpful here and check the first few bytes of the
file to see what type it is.

https://lists.gnupg.org/pipermail/gnupg-users/2013-September/047725.html

But that doesn't seem to be totally trivial.

Should Emacs treat these as normal files if gpg gives an error message
when trying to open them?

---
Error while decrypting with "/usr/bin/gpg2":

gpg: decrypt_message failed: Unexpected error
---

That doesn't seem very logical, either...

Anybody got any ideas?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2019-08-30 11:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-12 12:47 bug#3829: 23.0.96; Cannot read gpg file Андрей Парамонов
2009-07-12 21:44 ` Daiki Ueno
2009-07-13  7:01   ` Андрей Парамонов
2009-07-14  3:06     ` Daiki Ueno
2009-07-14  7:17       ` Glenn Morris
2009-07-14  7:25         ` Processed: " Emacs bug Tracking System
2009-07-14 10:51       ` Андрей Парамонов
2009-07-14 19:59         ` Stefan Monnier
2019-08-30 11:19 ` Lars Ingebrigtsen [this message]
2020-08-04 19:27   ` Lars Ingebrigtsen
2020-08-04 19:43     ` Lars Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
2009-07-12 17:34 Chong Yidong

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=87zhjqgasi.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=3829@debbugs.gnu.org \
    --cc=cmr.pent@gmail.com \
    --cc=rfrancoise@debian.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).