From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rainer Thiel Newsgroups: gmane.emacs.help Subject: Re: transparently decrypting/encrypting gpg files from Gnu Emacs 25.2.1 Date: Tue, 29 Aug 2017 15:36:46 +0200 Message-ID: <81y3q28pht.fsf@uni-jena.de> References: <81a82johma.fsf@uni-jena.de> <56406774-44bf-7a9e-6379-9e9709af69d4@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1504014028 23830 195.159.176.226 (29 Aug 2017 13:40:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 Aug 2017 13:40:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 29 15:40:20 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmgkS-0005EQ-1z for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Aug 2017 15:40:08 +0200 Original-Received: from localhost ([::1]:45011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmgkY-00011Q-Nd for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Aug 2017 09:40:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmghY-0007ig-VY for help-gnu-emacs@gnu.org; Tue, 29 Aug 2017 09:37:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmghU-0004iM-Tk for help-gnu-emacs@gnu.org; Tue, 29 Aug 2017 09:37:08 -0400 Original-Received: from [195.159.176.226] (port=38749 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmghU-0004hK-Ml for help-gnu-emacs@gnu.org; Tue, 29 Aug 2017 09:37:04 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dmghK-0004lP-Pm for help-gnu-emacs@gnu.org; Tue, 29 Aug 2017 15:36:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:WRPsUisWZELNN+Q7ZPmLHXCg9FU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114117 Archived-At: 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 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 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