Re: emacs: use epg-gpg-program

2017-03-13 Thread David Bremner
Tomi Ollila  writes:

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

Done, and pushed.  Thanks to you both for your contribution.

d


___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: emacs: use epg-gpg-program

2017-03-13 Thread Tomi Ollila
On Mon, Mar 13 2017, David Bremner  wrote:

> Tomi Ollila  writes:
>
>> From: John Byrnes 
>>
>> From: John Byrnes 
>>
>> 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
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: emacs: use epg-gpg-program

2017-03-12 Thread David Bremner
Tomi Ollila  writes:

> From: John Byrnes 
>
> From: John Byrnes 
>
> 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?

d

___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch