mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 23:41:38 -05:00
jupyter-inspect: Fix commentary
This commit is contained in:
parent
0484fa1191
commit
0ff69491cd
1 changed files with 6 additions and 3 deletions
|
@ -1478,15 +1478,18 @@ DETAIL is the detail level to use for the request and defaults to
|
||||||
(setq jupyter-current-client client)
|
(setq jupyter-current-client client)
|
||||||
(help-setup-xref
|
(help-setup-xref
|
||||||
(list
|
(list
|
||||||
;; We find the client based on session so that we don't
|
;; Don't capture a strong reference to the client
|
||||||
;; capture a reference to the client.
|
;; object since we don't know when this reference will
|
||||||
|
;; be cleaned up.
|
||||||
(let ((ref (jupyter-weak-ref client)))
|
(let ((ref (jupyter-weak-ref client)))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(let ((jupyter-current-client
|
(let ((jupyter-current-client
|
||||||
(jupyter-weak-ref-resolve ref)))
|
(jupyter-weak-ref-resolve ref)))
|
||||||
(if jupyter-current-client
|
(if jupyter-current-client
|
||||||
(jupyter-inspect code pos nil detail)
|
(jupyter-inspect code pos nil detail)
|
||||||
(error "Client for session has been removed"))))))
|
;; TODO: Skip over this xref, need to figure
|
||||||
|
;; out if going forward or backward first.
|
||||||
|
(error "Client has been removed"))))))
|
||||||
nil)
|
nil)
|
||||||
(jupyter-insert msg)))))
|
(jupyter-insert msg)))))
|
||||||
(message "Nothing found for %s"
|
(message "Nothing found for %s"
|
||||||
|
|
Loading…
Add table
Reference in a new issue