epg.el: Add context option `home-directory' and `program'.
authorDaiki Ueno <ueno@gnu.org>
Mon, 24 Jun 2013 07:07:08 +0000 (16:07 +0900)
committerDaiki Ueno <ueno@gnu.org>
Mon, 24 Jun 2013 07:07:08 +0000 (16:07 +0900)
commit6617bbf4d531a136afcf48af5e11b614c6a8d7d5
treecd192e053130a6c21948b846a2b4981c79bbbc5b
parenta19797e982a9a83928d97c8d04b614ea17fb097e
epg.el: Add context option `home-directory' and `program'.

* epg.el (epg-make-context): Check if PROTOCOL is valid; embed the
file name of gpg executable.
(epg-context-program): New function.
(epg-context-home-directory): New function.
(epg-context-set-program): New function.
(epg-context-set-home-directory): New function.
(epg--start): Use `epg-context-program' instead of
'epg-gpg-program'.
(epg--list-keys-1): Likewise.
lisp/ChangeLog
lisp/epg.el