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)
commit18eb4bca3ec825790755f6779d54b74c335b8be9
tree80bbe148783e66b9529c3441f422e68d4e3b4e20
parentf99f7826a0303f7a40864571be7cbf84f3d4ee62
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