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

Daiki Ueno ueno at gnu.org
Thu May 28 11:03:44 CEST 2015


Werner Koch <wk at gnupg.org> writes:

> On Fri, 22 May 2015 10:45, ueno at gnu.org said:
>
>> Just to confirm your suggestion: would it be acceptable to add a hack in
>> Pinentry (upstream, instead of a wrapper) to check INSIDE_EMACS envvar?
>> http://www.gnu.org/software/emacs/manual/html_node/emacs/Interactive-Shell.html#Interactive-Shell
>
> Yes.

Okay, here is a tentative patch in that direction.
I'm also attaching a patch to Emacs, needed for testing.

> To actually convey the variable to pinentry a small change to
> GnuPG is required (common/session-env.c:stdenvnames).  Shall I do that
> part?

Sure, thanks.  Please also considier adding TMPDIR, since emacsclient
looks for a socket file under "$TMPDIR/emacs$UID/server".

Comments appreciated.

Regards,
-- 
Daiki Ueno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-inside-Emacs-mode-to-GUI-pinentry-programs.patch
Type: text/x-patch
Size: 36467 bytes
Desc: not available
URL: </pipermail/attachments/20150528/839d9946/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-epg-Support-external-pinentry-callback.patch
Type: text/x-patch
Size: 3239 bytes
Desc: not available
URL: </pipermail/attachments/20150528/839d9946/attachment-0003.bin>


More information about the Gnupg-devel mailing list