From: Rainer Thiel <r.thiel@uni-jena.de>
To: help-gnu-emacs@gnu.org
Subject: Re: transparently decrypting/encrypting gpg files from Gnu Emacs 25.2.1
Date: Tue, 29 Aug 2017 15:36:46 +0200 [thread overview]
Message-ID: <81y3q28pht.fsf@uni-jena.de> (raw)
In-Reply-To: 56406774-44bf-7a9e-6379-9e9709af69d4@gmail.com
Thank you, Nikolay,
I think I've got it right, though I am still not sure what had happened.
gpg2 was in the right place, and it did use the keyrings in ~/.gnupg,
but for some reason that escapes me it was not able to find them when
called from emacs. When I followed the advice from
<https://lists.gnupg.org/pipermail/gnupg-users/2008-April/033222.html>
that you kindly pointed me to, of a sudden gpg2 (called from the command
line), GPA and Kleopatra (key managers provided with Gpg4win) did not
find the keys anymore, either.
Therefore, I uninstalled and re-installed Gpg4win and imported the keys
from a backup. Since I have done that, everything works as expected
again, with one pleasant side effect: When trying to open a .gpg-file
from Emacs, I am asked for the pass phrase in the minibuffer instead of
in a Windows™ window. Which is what I want and failed to achieve
before.
Thanks again and best regards
Rainer
On 2017-08-28, 23:18 +0300, Nikolay Kudryavtsev
<nikolay.kudryavtsev@gmail.com> wrote:
> Hello.
>
> Maybe you've already tried the stuff I'm going to propose, but still
> it's worth to be sure:
>
> Try running "where gpg" from Emacs shell, to see whether you have any
> possible culprits at the top of PATH. For example git carries its own
> gpg, so does msys2, maybe one of them is higher in your path and broken.
>
> After that please see this message about possible gpg config settings
> that may be in your way:
>
> https://lists.gnupg.org/pipermail/gnupg-users/2008-April/033222.html
>
> It's very possible that you have a case like when gpg has its stuff in
> ~/.gpg, while it's looking for it in appdata.
--
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
r.thiel@uni-jena.de
next prev parent reply other threads:[~2017-08-29 13:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-28 15:07 transparently decrypting/encrypting gpg files from Gnu Emacs 25.2.1 Rainer Thiel
2017-08-28 20:18 ` Nikolay Kudryavtsev
2017-08-29 13:36 ` Rainer Thiel [this message]
2017-08-29 18:59 ` Stefan Monnier
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=81y3q28pht.fsf@uni-jena.de \
--to=r.thiel@uni-jena.de \
--cc=help-gnu-emacs@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.
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).