Fix problems with with-jupyter-client-buffer

- Supply `with-current-buffer` with an actual buffer
- Actually expand the `client` argument
This commit is contained in:
Nathaniel Nicandro 2018-01-13 13:34:02 -06:00
parent 00d50633c7
commit 2d83b757a6

View file

@ -177,8 +177,8 @@ connection is terminated before initializing."
"Run a form inside CLIENT's IOloop subprocess buffer." "Run a form inside CLIENT's IOloop subprocess buffer."
(declare (indent 1)) (declare (indent 1))
`(progn `(progn
(cl-check-type client jupyter-kernel-client) (cl-check-type ,client jupyter-kernel-client)
(with-current-buffer (oref client ioloop) (with-current-buffer (process-buffer (oref ,client ioloop))
,@body))) ,@body)))
(defun jupyter-set (client symbol newval) (defun jupyter-set (client symbol newval)