mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
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:
parent
e086e55a66
commit
2b2eac26c8
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue