summaryrefslogtreecommitdiff
path: root/lisp/epg-config.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2014-09-27 12:26:54 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2014-09-27 12:26:54 -0400
commit5551acd251f6ca0adea570a3b3781788fdae6a2a (patch)
tree137e9238857c82b05bf2f7ba0743c077c68e3857 /lisp/epg-config.el
parent19e0f0af6d27179baf76b5ebc67588dfc4b70588 (diff)
downloademacs-5551acd251f6ca0adea570a3b3781788fdae6a2a.tar.gz
* lisp/epg-config.el (epg-gpg-program): Use the plain program names rather
than their absolute file name.
Diffstat (limited to 'lisp/epg-config.el')
-rw-r--r--lisp/epg-config.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/epg-config.el b/lisp/epg-config.el
index 10b37041443..16ed6e1f5c9 100644
--- a/lisp/epg-config.el
+++ b/lisp/epg-config.el
@@ -39,9 +39,9 @@
:group 'data
:group 'external)
-(defcustom epg-gpg-program (or (executable-find "gpg")
- (executable-find "gpg2")
- "gpg")
+(defcustom epg-gpg-program (cond ((executable-find "gpg") "gpg")
+ ((executable-find "gpg2") "gpg2")
+ (t "gpg"))
"The `gpg' executable."
:group 'epg
:type 'string)