diff options
author | jao <jao@gnu.org> | 2021-12-29 00:32:08 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-12-29 00:32:08 +0000 |
commit | e5357e6dcd221ba734423c68dc7a823c034d49d2 (patch) | |
tree | 4b7550aa13e039b9b7d3ea75239c9235862f77e6 /elisp/geiser-connection.el | |
parent | f5e7004bf2f5af381dbf3387108cde210a190733 (diff) | |
download | geiser-e5357e6dcd221ba734423c68dc7a823c034d49d2.tar.gz geiser-e5357e6dcd221ba734423c68dc7a823c034d49d2.tar.bz2 |
geiser-eval-wait -> geiser-wait-eval (and make it work)
Diffstat (limited to 'elisp/geiser-connection.el')
-rw-r--r-- | elisp/geiser-connection.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/elisp/geiser-connection.el b/elisp/geiser-connection.el index 87f5f7f..19cbaee 100644 --- a/elisp/geiser-connection.el +++ b/elisp/geiser-connection.el @@ -262,12 +262,14 @@ (defun geiser-con--wait (req timeout) "Wait for the given request REQ to finish, up to TIMEOUT secs, returning its result." - (let* ((con (geiser-con--request-connection req)) + (let* ((con (or (geiser-con--request-connection req) + (error "Geiser connection not active"))) + (proc (geiser-con--connection-process con)) (id (geiser-con--request-id req)) (timeout (/ (or timeout geiser-connection-timeout) 1000.0)) (step (/ timeout 10))) (with-timeout (timeout (geiser-con--request-deactivate req)) - (condition-case nil + (condition-case e (while (and (geiser-con--connection-process con) (not (geiser-con--connection-completed-p con id))) (accept-process-output proc step)) |