jupyter-repl-associate-buffer: Fix interactive argument

This commit is contained in:
Nathaniel Nicandro 2018-10-08 19:11:31 -05:00
parent ac053e16d4
commit 3734b2d3a4

View file

@ -2480,8 +2480,10 @@ If CLIENT is a buffer or the name of a buffer, use the
(interactive
(list
(let ((repls (jupyter-repl-available-repl-buffers major-mode)))
(if repls (completing-read "jupyter-repl: " repls nil t)
nil))))
(when repls
(with-current-buffer
(completing-read "jupyter-repl: " repls nil t)
jupyter-current-client)))))
(if (not client)
(when (y-or-n-p "No REPL for `major-mode' exists. Start one? ")
(call-interactively #'run-jupyter-repl))