mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
Fix Issue #67.
Only six months late. Jupyter changed callback signature for complete_request, breaking ein's autocomplete code. Missed this for so long because I am lazy and almost exclusively used jedi for autocompletion. Ugh.
This commit is contained in:
parent
a803bb0f54
commit
261576f94b
1 changed files with 7 additions and 4 deletions
|
@ -52,7 +52,10 @@
|
|||
|
||||
(defun ein:completer-finish-completing (args content -metadata-not-used-)
|
||||
(ein:log 'debug "COMPLETER-FINISH-COMPLETING: content=%S" content)
|
||||
(let ((matched-text (plist-get content :matched_text))
|
||||
(let* ((beg (point))
|
||||
(delta (- (plist-get content :cursor_end)
|
||||
(plist-get content :cursor_start)))
|
||||
(matched-text (buffer-substring beg (- beg delta)))
|
||||
(matches (plist-get content :matches))
|
||||
(completer (ein:completer-choose)))
|
||||
(ein:log 'debug "COMPLETER-FINISH-COMPLETING: completer=%s" completer)
|
||||
|
|
Loading…
Add table
Reference in a new issue