diff options
| author | Daiki Ueno | 2009-09-23 00:22:08 +0000 |
|---|---|---|
| committer | Daiki Ueno | 2009-09-23 00:22:08 +0000 |
| commit | 7bda18ccca8cf97874e93d18cf3136c33e2e9df0 (patch) | |
| tree | 0ed8c75c7aa0ed9debd40060a12690be43ac56f6 /lisp/epg.el | |
| parent | 0aa4f295f59c1e4cb3dae225a1ae82759f8953fa (diff) | |
| download | emacs-7bda18ccca8cf97874e93d18cf3136c33e2e9df0.tar.gz emacs-7bda18ccca8cf97874e93d18cf3136c33e2e9df0.zip | |
(epg-wait-for-status): Preserve existing 'error results.
Diffstat (limited to 'lisp/epg.el')
| -rw-r--r-- | lisp/epg.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/epg.el b/lisp/epg.el index d80e966c942..b8eb2b48ea7 100644 --- a/lisp/epg.el +++ b/lisp/epg.el | |||
| @@ -1187,7 +1187,10 @@ This function is for internal use only." | |||
| 1187 | epg-pending-status-list) | 1187 | epg-pending-status-list) |
| 1188 | (accept-process-output (epg-context-process context) 1)) | 1188 | (accept-process-output (epg-context-process context) 1)) |
| 1189 | (if epg-pending-status-list | 1189 | (if epg-pending-status-list |
| 1190 | (epg-context-set-result-for context 'error 'exit)))) | 1190 | (epg-context-set-result-for |
| 1191 | context 'error | ||
| 1192 | (cons (list 'exit) | ||
| 1193 | (epg-context-result-for context 'error)))))) | ||
| 1191 | 1194 | ||
| 1192 | (defun epg-wait-for-completion (context) | 1195 | (defun epg-wait-for-completion (context) |
| 1193 | "Wait until the `epg-gpg-program' process completes." | 1196 | "Wait until the `epg-gpg-program' process completes." |