diff options
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/epg.el | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 290b6b227e0..744823b1006 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-09-27 Daiki Ueno <ueno@unixuser.org> | ||
| 2 | |||
| 3 | * epg.el (epg-wait-for-status): Check if there is no pending | ||
| 4 | status. | ||
| 5 | Reported by Ted Romer <ted@romerfamily.com>. | ||
| 6 | |||
| 1 | 2008-09-26 Dan Nicolaescu <dann@ics.uci.edu> | 7 | 2008-09-26 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 8 | ||
| 3 | * startup.el (command-line): Turn on menu-bar-mode and | 9 | * startup.el (command-line): Turn on menu-bar-mode and |
diff --git a/lisp/epg.el b/lisp/epg.el index 75a860933cb..060dc5ce98d 100644 --- a/lisp/epg.el +++ b/lisp/epg.el | |||
| @@ -1168,7 +1168,9 @@ This function is for internal use only." | |||
| 1168 | (setq epg-pending-status-list status-list) | 1168 | (setq epg-pending-status-list status-list) |
| 1169 | (while (and (eq (process-status (epg-context-process context)) 'run) | 1169 | (while (and (eq (process-status (epg-context-process context)) 'run) |
| 1170 | epg-pending-status-list) | 1170 | epg-pending-status-list) |
| 1171 | (accept-process-output (epg-context-process context) 1)))) | 1171 | (accept-process-output (epg-context-process context) 1)) |
| 1172 | (if epg-pending-status-list | ||
| 1173 | (epg-context-set-result-for context 'error 'exit)))) | ||
| 1172 | 1174 | ||
| 1173 | (defun epg-wait-for-completion (context) | 1175 | (defun epg-wait-for-completion (context) |
| 1174 | "Wait until the `epg-gpg-program' process completes." | 1176 | "Wait until the `epg-gpg-program' process completes." |