summaryrefslogtreecommitdiff
path: root/lisp/epg-config.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2017-03-11 17:21:20 -0800
committerGlenn Morris <rgm@gnu.org>2017-03-11 17:21:20 -0800
commitcce29d942dc62f39664e890fbf210a6568df4594 (patch)
treeafc9c57d466b0d3adefb0b0846504f112b06c36f /lisp/epg-config.el
parent46fcaf3361b56306c288f2ddf4dd8a7dfab7ce2f (diff)
downloademacs-cce29d942dc62f39664e890fbf210a6568df4594.tar.gz
Small epg-find-configuration improvement
* lisp/epg-config.el (epg-find-configuration): Handle epg-gpg-program customized but not saved. (Bug#25947)
Diffstat (limited to 'lisp/epg-config.el')
-rw-r--r--lisp/epg-config.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/epg-config.el b/lisp/epg-config.el
index ea1ae6c439f..611f984106d 100644
--- a/lisp/epg-config.el
+++ b/lisp/epg-config.el
@@ -129,7 +129,8 @@ version requirement is met."
(or (and (not no-cache) (alist-get protocol epg--configurations))
;; If the executable value is already set with M-x
;; customize, use it without checking.
- (if (and symbol (get symbol 'saved-value))
+ (if (and symbol (or (get symbol 'saved-value)
+ (get symbol 'customized-value)))
(let ((configuration
(funcall constructor (symbol-value symbol))))
(push (cons protocol configuration) epg--configurations)