Cleanup CAPF when jupyter-repl-interaction-mode is disabled

This commit is contained in:
Nathaniel Nicandro 2018-09-30 17:59:52 -05:00
parent cccc680a6c
commit 9cd52d25c3

View file

@ -2420,6 +2420,7 @@ the `current-buffer' will automatically have
:keymap jupyter-repl-interaction-map
(if jupyter-repl-interaction-mode
(add-hook 'completion-at-point-functions 'jupyter-completion-at-point nil t)
(remove-hook 'completion-at-point-functions 'jupyter-completion-at-point t)
(unless (eq major-mode 'jupyter-repl-mode)
(kill-local-variable 'jupyter-current-client))))