mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
Do not use lexical-let in ein:jedi--completer-complete
As ein:completer-complete has a way to passing around context, it is natural to use that.
This commit is contained in:
parent
28cbe9dfd4
commit
b490adb72f
1 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@
|
|||
'(ac-source-jedi-direct ac-source-ein-direct))
|
||||
|
||||
(defun ein:jedi--completer-complete ()
|
||||
(lexical-let ((d (deferred:new #'identity)))
|
||||
(let ((d (deferred:new #'identity)))
|
||||
(ein:and-let* ((kernel (ein:get-kernel))
|
||||
((not (ac-cursor-on-diable-face-p)))
|
||||
((ein:kernel-live-p kernel)))
|
||||
|
@ -44,8 +44,8 @@
|
|||
kernel
|
||||
:callbacks
|
||||
(list :complete_reply
|
||||
(cons (lambda (_ &rest args) (deferred:callback-post d args))
|
||||
nil))))
|
||||
(cons (lambda (d &rest args) (deferred:callback-post d args))
|
||||
d))))
|
||||
d))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Reference in a new issue