]> code.delx.au - gnu-emacs/commitdiff
* lisp/epg-config.el (epg-gpg-program): Don't use the absolute names by default.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 20 Oct 2014 21:51:44 +0000 (17:51 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 20 Oct 2014 21:51:44 +0000 (17:51 -0400)
lisp/ChangeLog
lisp/epg-config.el

index c1a57cf373e0e34e79c1ddefb39c754075156568..771f22116064466af6d3622532eaca55552d0e0a 100644 (file)
@@ -1,5 +1,7 @@
 2014-10-20  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * epg-config.el (epg-gpg-program): Don't use the absolute names by default.
+
        * emacs-lisp/bytecomp.el (=, <, >, <=, >=): Don't optimize multi-arg
        case (bug#18767).
 
index 10b3704144351869a337c7c76ff3dfedf1b35cca..16ed6e1f5c9ea4e4d88e5ef1a755745e2f6a45fa 100644 (file)
@@ -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)