summaryrefslogtreecommitdiff
path: root/lisp/epg.el
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2015-08-18 12:12:17 +0900
committerDaiki Ueno <ueno@gnu.org>2015-08-18 12:13:36 +0900
commit2b2eac26c898ef290e29f96cbd1d83ee7ac5b070 (patch)
tree1d9ed8fd852a40e58f6656a3ca347325dbf589e1 /lisp/epg.el
parente086e55a664ec27fbca7b3231c4b32cb78a89337 (diff)
downloademacs-2b2eac26c898ef290e29f96cbd1d83ee7ac5b070.tar.gz
emacs-2b2eac26c898ef290e29f96cbd1d83ee7ac5b070.tar.bz2
emacs-2b2eac26c898ef290e29f96cbd1d83ee7ac5b070.zip
epg.el: Make gpgconf output parsing future proof
* lisp/epg.el (epg--start): Count the number of fields in "gpgconf --list-options" output.
Diffstat (limited to 'lisp/epg.el')
-rw-r--r--lisp/epg.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/epg.el b/lisp/epg.el
index 7e3cec7b2b7..0c8f5c9b0ae 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -611,7 +611,9 @@ callback data (if any)."
"--list-options" "gpg-agent")
0)
(goto-char (point-min))
- (re-search-forward "^allow-emacs-pinentry:.*:1$" nil t))))
+ (re-search-forward
+ "^allow-emacs-pinentry:\\(?:.*:\\)\\{8\\}1"
+ nil t))))
(pinentry-start))
(setq process-environment
(cons (format "INSIDE_EMACS=%s,epg" emacs-version)