summaryrefslogtreecommitdiff
path: root/elisp/geiser-connection.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-07 03:40:37 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-07 03:40:37 +0100
commit7c24433334bd1f021d30f4e1c44d804c44e6b496 (patch)
tree26fd45f4399b8d91986cccaed460a92033eab427 /elisp/geiser-connection.el
parentf4d25d65263c174b2ab54db521d5adf4cf79d8fb (diff)
downloadgeiser-7c24433334bd1f021d30f4e1c44d804c44e6b496.tar.gz
geiser-7c24433334bd1f021d30f4e1c44d804c44e6b496.tar.bz2
Nits
Diffstat (limited to 'elisp/geiser-connection.el')
-rw-r--r--elisp/geiser-connection.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/elisp/geiser-connection.el b/elisp/geiser-connection.el
index dfdb21d..2702f0f 100644
--- a/elisp/geiser-connection.el
+++ b/elisp/geiser-connection.el
@@ -274,8 +274,9 @@
(defun geiser-con--send-string/wait (buffer/proc str cont
&optional timeout sbuf)
(save-current-buffer
- (let ((con (geiser-con--get-connection buffer/proc)))
- (unless (geiser-con--connection-process con)
+ (let* ((con (geiser-con--get-connection buffer/proc))
+ (proc (and con (geiser-con--connection-process con))))
+ (unless proc
(error geiser-con--error-message))
(with-current-buffer (geiser-con--connection-buffer con)
(when (geiser-con--is-debugging)
@@ -290,8 +291,8 @@
(while (and (> time 0)
(geiser-con--connection-process con)
(not (geiser-con--connection-completed-p con id)))
- (accept-process-output nil waitsecs)
- (setq time (- time step)))
+ (unless (accept-process-output nil waitsecs)
+ (setq time (- time step))))
(error (setq time 0)))
(or (> time 0)
(geiser-con--request-deactivate req)