Fix read-only error when inserting into the *jupyter-repl-output* buffer

This commit is contained in:
Nathaniel Nicandro 2018-05-27 22:04:31 -05:00
parent 3c34c1f7ed
commit d7a064cae5

View file

@ -1218,7 +1218,9 @@ buffer to display TEXT."
(jupyter-request-last-message req))
:comm-msg)
(with-current-buffer (get-buffer-create "*jupyter-repl-output*")
(jupyter-repl-insert-ansi-coded-text text)))
(let ((inhibit-read-only t))
(jupyter-repl-insert-ansi-coded-text text)
(display-buffer (current-buffer)))))
(t
(jupyter-repl-do-at-request client req
(jupyter-repl-insert-ansi-coded-text text))))))