emacs: use epg-gpg-program

Tomi Ollila tomi.ollila at iki.fi
Mon Mar 13 13:17:09 PDT 2017


On Mon, Mar 13 2017, David Bremner <david at tethera.net> wrote:

> Tomi Ollila <tomi.ollila at iki.fi> writes:
>
>> From: John Byrnes <john at johnbyrnes.info>
>>
>> From: John Byrnes <john at johnbyrnes.info>
>>
>> Adjusted notmuch-crypto gpg call-process function to respect
>> the GPG program set by the EasyPG epg-gpg-program variable.
>>
>> This is to correct a problem observed on NixOS where only gpg2 is
>> installed by default. The Notmuch Emacs frontend fails when trying to
>> access someone's key to verify their signature when it cannot find the
>> GPG binary.
>
> Following Tomi's hint on IRC I ran
>
> emacs -Q --batch --eval "(progn (package-initialize) (require 'notmuch) (message epg-gpg-program))"
>
> and it seems epg-gpg-program is defined. On the other hand can anyone
> think of a good reason not to add (require 'epg) to the top of
> notmuch-crypto.el?

IMO amending one From: line out and adding that is a good idea,
to explicitly require a module which feature is being used.

Currently it looks like egp is loaded by mml-sec, which is loaded by
mml-smime which is loaded by mm-view which is loaded by notmuch.el as the
first module it is requiring (used try-emacs-mua to see what it is loading
and then manually parsed the output)


Tomi

>
> d


More information about the notmuch mailing list