[PATCH] Add inside-Emacs mode to GUI pinentry programs

Neal H. Walfield neal at walfield.org
Sun Jun 14 15:35:14 CEST 2015

At Sun, 14 Jun 2015 14:52:55 +0200,
Werner Koch wrote:
> On Sun, 14 Jun 2015 12:19, neal at walfield.org said:
> >> explicitly unsetenv'ing INSIDE_EMACS in gpg-agent, when
> >> allow-emacs-pinentry is not set in gpg-agent.conf (like we do for
> >> DISPLAY, when keep-display is not set).
> >
> > I seem to remember Werner suggesting that this would require a large
> > change, but if it is easy, I would welcome this approach.
> Actually we do this for DISPLAY on gpg-agent startup anyway thus I think
> we could do that for INSIDE_EMACS too.  On gpg-agent startup and in
> atfork_cb.

Now that I think about this some more: isn't it required that we
ignore the setting of INSIDE_EMACS for gpg-agent?  We want to use
whatever value was in gpg's environment.  First, we don't want the
pinentry to appear in an emacs that the user is not using.  Second, if
the user restarts emacs, the new value needs to be propagated somehow.

Or am I confused and emacs always start its own gpg-agent?


:) Neal

More information about the Gnupg-devel mailing list