aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-02-07 13:01:01 +1100
committerLars Ingebrigtsen2016-02-07 13:01:01 +1100
commitf93d669a16bd3cb3f43f0c8cfd22fe18b627a6a1 (patch)
tree635c7077bcebfc25213fb493e70b31a63e3ee32e
parent35cbe2095ba024f6ee60799cd560771f2ef739a4 (diff)
downloademacs-f93d669a16bd3cb3f43f0c8cfd22fe18b627a6a1.tar.gz
emacs-f93d669a16bd3cb3f43f0c8cfd22fe18b627a6a1.zip
Default to gpg2 instead of gpg
* lisp/epg-config.el (epg-gpg-program): Prefer gpg2 over gpg, if it exists. This fixes many problems with using the GPG authentication agent.
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/epg-config.el7
2 files changed, 8 insertions, 3 deletions
diff --git a/etc/NEWS b/etc/NEWS
index e5f34a1d8a0..18c08dc5578 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -711,6 +711,10 @@ at BOL or EOL, or in whitespace there. To enable these, customize,
711respectively, `show-paren-when-point-inside-paren' or 711respectively, `show-paren-when-point-inside-paren' or
712`show-paren-when-point-in-periphery'. 712`show-paren-when-point-in-periphery'.
713 713
714---
715** If gpg2 exists on the system, it is now used as the default value
716of `epg-gpg-program' (instead of gpg).
717
714** Lisp mode 718** Lisp mode
715 719
716--- 720---
diff --git a/lisp/epg-config.el b/lisp/epg-config.el
index e92bcd62a66..c41d97dbfac 100644
--- a/lisp/epg-config.el
+++ b/lisp/epg-config.el
@@ -39,10 +39,11 @@
39 :group 'data 39 :group 'data
40 :group 'external) 40 :group 'external)
41 41
42(defcustom epg-gpg-program (cond ((executable-find "gpg") "gpg") 42(defcustom epg-gpg-program (if (executable-find "gpg2")
43 ((executable-find "gpg2") "gpg2") 43 "gpg2"
44 (t "gpg")) 44 "gpg")
45 "The `gpg' executable." 45 "The `gpg' executable."
46 :version "25.1"
46 :group 'epg 47 :group 'epg
47 :type 'string) 48 :type 'string)
48 49