[PATCH] [EMACS] Adjust notmuch-crypto gpg call-process function

John Byrnes john at johnbyrnes.info
Tue Jan 3 18:55:48 PST 2017


Hey Notmuchers,

I'm running the latest NixOS and noticed that the system does not
install gpgv1 by default. This means that the only gpg binary available
is the gpg2 binary.

I found that notmuch-crypto.el hardcodes the GnuPG binary as gpg.  I
thought it might make more sense to rely on the setting provided by 
EasyPG to locate the correct GnuPG binary.

The patch is quite simple - it just replaces "gpg" with the
epg-gpg-program variable in each place it's used.

-	(call-process "gpg" nil t t "--list-keys" fingerprint))
+	(call-process epg-gpg-program nil t t "--list-keys" fingerprint))

I tested the changes locally and it seems to work OK. 

Happy New Year!
John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Adjusted-notmuch-crypto-gpg-call-process-function-to.patch
Type: text/x-patch
Size: 1517 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20170103/6d6ca674/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 454 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20170103/6d6ca674/attachment.sig>


More information about the notmuch mailing list