From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id EE81F6DE16E9 for ; Mon, 13 Mar 2017 13:17:45 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.499 X-Spam-Level: X-Spam-Status: No, score=0.499 tagged_above=-999 required=5 tests=[AWL=-0.153, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zi--xABT-2MJ for ; Mon, 13 Mar 2017 13:17:44 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 5C0066DE16E8 for ; Mon, 13 Mar 2017 13:17:44 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 20E9310008D; Mon, 13 Mar 2017 22:17:09 +0200 (EET) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: emacs: use epg-gpg-program In-Reply-To: <87a88qp25u.fsf@tethera.net> References: <20170312192616.13305-1-tomi.ollila@iki.fi> <87a88qp25u.fsf@tethera.net> User-Agent: Notmuch/0.23.5+113~gfa95df1 (https://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Mar 2017 20:17:46 -0000 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