]> git.eshelyaron.com Git - emacs.git/commitdiff
Default to gpg2 instead of gpg
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Feb 2016 02:01:01 +0000 (13:01 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Feb 2016 02:01:01 +0000 (13:01 +1100)
* lisp/epg-config.el (epg-gpg-program): Prefer gpg2 over gpg, if
it exists.  This fixes many problems with using the GPG
authentication agent.

etc/NEWS
lisp/epg-config.el

index e5f34a1d8a02331e032835fd1be86ea141a1fbff..18c08dc557869edf68072304544bb5b275556d5b 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -711,6 +711,10 @@ at BOL or EOL, or in whitespace there.  To enable these, customize,
 respectively, `show-paren-when-point-inside-paren' or
 `show-paren-when-point-in-periphery'.
 
+---
+** If gpg2 exists on the system, it is now used as the default value
+of `epg-gpg-program' (instead of gpg).
+
 ** Lisp mode
 
 ---
index e92bcd62a668bcb4a39a279310bcc063946267b3..c41d97dbfacbd1d8c9ee98de17060be1f59e373b 100644 (file)
   :group 'data
   :group 'external)
 
-(defcustom epg-gpg-program (cond ((executable-find "gpg") "gpg")
-                                ((executable-find "gpg2") "gpg2")
-                                (t "gpg"))
+(defcustom epg-gpg-program (if (executable-find "gpg2")
+                               "gpg2"
+                             "gpg")
   "The `gpg' executable."
+  :version "25.1"
   :group 'epg
   :type 'string)