diff options
| author | Ivan Andrus | 2015-07-16 15:44:20 -0600 |
|---|---|---|
| committer | Ivan Andrus | 2015-07-18 09:06:46 -0600 |
| commit | 5d72d5d1f4d105556196d99f0ea3838dfedd2f10 (patch) | |
| tree | 247bb83f19561938aed29152f3afacc2893985fd | |
| parent | ea1a30223e14ff13e19d15ab8ac17d7aef5242f1 (diff) | |
| download | emacs-5d72d5d1f4d105556196d99f0ea3838dfedd2f10.tar.gz emacs-5d72d5d1f4d105556196d99f0ea3838dfedd2f10.zip | |
* epg.el (epg--start): Check that gpgconf can be found before calling it.
| -rw-r--r-- | lisp/epg.el | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/epg.el b/lisp/epg.el index 4ba96272aae..7e3cec7b2b7 100644 --- a/lisp/epg.el +++ b/lisp/epg.el | |||
| @@ -605,16 +605,17 @@ callback data (if any)." | |||
| 605 | ;; Start the Emacs Pinentry server if allow-emacs-pinentry is set | 605 | ;; Start the Emacs Pinentry server if allow-emacs-pinentry is set |
| 606 | ;; in ~/.gnupg/gpg-agent.conf. | 606 | ;; in ~/.gnupg/gpg-agent.conf. |
| 607 | (when (and (fboundp 'pinentry-start) | 607 | (when (and (fboundp 'pinentry-start) |
| 608 | (with-temp-buffer | 608 | (executable-find epg-gpgconf-program) |
| 609 | (when (= (call-process epg-gpgconf-program nil t nil | 609 | (with-temp-buffer |
| 610 | "--list-options" "gpg-agent") | 610 | (when (= (call-process epg-gpgconf-program nil t nil |
| 611 | 0) | 611 | "--list-options" "gpg-agent") |
| 612 | (goto-char (point-min)) | 612 | 0) |
| 613 | (re-search-forward "^allow-emacs-pinentry:.*:1$" nil t)))) | 613 | (goto-char (point-min)) |
| 614 | (re-search-forward "^allow-emacs-pinentry:.*:1$" nil t)))) | ||
| 614 | (pinentry-start)) | 615 | (pinentry-start)) |
| 615 | (setq process-environment | 616 | (setq process-environment |
| 616 | (cons (format "INSIDE_EMACS=%s,epg" emacs-version) | 617 | (cons (format "INSIDE_EMACS=%s,epg" emacs-version) |
| 617 | process-environment)) | 618 | process-environment)) |
| 618 | ;; Record modified time of gpg-agent socket to restore the Emacs | 619 | ;; Record modified time of gpg-agent socket to restore the Emacs |
| 619 | ;; frame on text terminal in `epg-wait-for-completion'. | 620 | ;; frame on text terminal in `epg-wait-for-completion'. |
| 620 | ;; See | 621 | ;; See |