Subject: bug#7130: 24.0.50; EPA queries twice and doesn't cache passwords when decrypting files

From: Daiki Ueno <[email-masked]>
Date: Fri, 01 Oct 2010 20:47:36 +0900

Tassilo Horn <[email-masked]> writes:

> I use gnupg-2.0.16, and there's also gpgme-1.3.0 installed, if that has
> something to do with it.

Ah, you use gnupg2?  Then, that is expected behavior.  gnupg2 always use
gpg-agent and there is no way to intercept password from elisp level.
If you see your password is cached, that is probably because of my hack
in gpg-agent:

http://lists.gnupg.org/pipermail/gnupg-devel/2009-May/025045.html

Perhaps this patch does not work for symlinks.

Anyway I'd suggest to install gnupg1, which can coexist with gnupg2, and
(setq epg-gpg-program "path to gpg program from gnupg1")

Regards,
-- 
Daiki Ueno