From: Daiki Ueno Date: Sat, 27 Sep 2008 06:59:43 +0000 (+0000) Subject: (epg-wait-for-status): Check if there is no pending X-Git-Tag: emacs-pretest-23.0.90~2748 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=47e4971262efe22cd8a0ee9a18cffcd67e687841;p=emacs.git (epg-wait-for-status): Check if there is no pending status. Reported by Ted Romer . --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 290b6b227e0..744823b1006 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2008-09-27 Daiki Ueno + + * epg.el (epg-wait-for-status): Check if there is no pending + status. + Reported by Ted Romer . + 2008-09-26 Dan Nicolaescu * 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." (setq epg-pending-status-list status-list) (while (and (eq (process-status (epg-context-process context)) 'run) epg-pending-status-list) - (accept-process-output (epg-context-process context) 1)))) + (accept-process-output (epg-context-process context) 1)) + (if epg-pending-status-list + (epg-context-set-result-for context 'error 'exit)))) (defun epg-wait-for-completion (context) "Wait until the `epg-gpg-program' process completes."