epg.el: Make gpgconf output parsing future proof

* lisp/epg.el (epg--start): Count the number of fields in "gpgconf
--list-options" output.
This commit is contained in:
Daiki Ueno 2015-08-18 12:12:17 +09:00
parent e086e55a66
commit 2b2eac26c8

View file

@ -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)