@@ -332,15 +332,13 @@ Return nil if SYMBOL is not bound for CLIENT."
332332
333333; ;; Hooks
334334
335- (defun jupyter-add-hook (client hook function &optional append )
335+ (defun jupyter-add-hook (client hook function &optional depth )
336336 " Add to the CLIENT value of HOOK the function FUNCTION.
337- APPEND has the same meaning as in `add-hook' and FUNCTION is
338- added to HOOK using `add-hook' , but local only to CLIENT. Note
339- that the CLIENT should have its channels already started before
340- this is called."
337+ DEPTH has the same meaning as in `add-hook' and FUNCTION is added
338+ to HOOK using `add-hook' , but local only to CLIENT."
341339 (declare (indent 2 ))
342340 (jupyter-with-client-buffer client
343- (add-hook hook function append t )))
341+ (add-hook hook function depth t )))
344342
345343(defun jupyter-remove-hook (client hook function )
346344 " Remove from CLIENT's value of HOOK the function FUNCTION."
@@ -434,7 +432,7 @@ kernel whose kernelspec if SPEC."
434432 (let ((client (make-instance client-class)))
435433 (oset client io (jupyter-io kernel))
436434 (unless (jupyter-kernel-info client)
437- (error " Kernel did not respond to :kernel-info-request " ))
435+ (error " Kernel did not respond to kernel_info_request " ))
438436 ; ; If the connection can resolve the kernel's heartbeat channel,
439437 ; ; start monitoring it now.
440438 (jupyter-hb-unpause client)
@@ -551,11 +549,11 @@ reporting progress to the user while waiting."
551549 " Return only when REQ has received a status: idle message."
552550 (while (null (jupyter-wait-until-idle req jupyter-long-timeout))))
553551
554- (defun jupyter-add-idle-sync-hook (hook req &optional append )
552+ (defun jupyter-add-idle-sync-hook (hook req &optional depth )
555553 " Add a function to HOOK that waits until REQ receives a status: idle message.
556554The function will not return until either a status: idle message
557- has been received by REQ or an error is signaled. APPEND and has
558- the same meaning as in `add-hook' .
555+ has been received by REQ or an error is signaled. DEPTH has the
556+ same meaning as in `add-hook' .
559557
560558The function is added to the global value of HOOK. When the
561559function is evaluated, it removes itself from HOOK *before*
@@ -566,7 +564,7 @@ waiting."
566564 ()
567565 (remove-hook hook #'sync-hook )
568566 (jupyter-idle-sync req)))
569- (add-hook hook #'sync-hook append )))
567+ (add-hook hook #'sync-hook depth )))
570568
571569; ;; Client handlers
572570
0 commit comments