mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 15:41:37 -05:00
No need for apply-partially
This commit is contained in:
parent
6b5742e4cf
commit
7d516f2126
1 changed files with 3 additions and 6 deletions
|
@ -609,12 +609,9 @@ run when MSG-TYPE is received for REQ."
|
|||
(let ((cb-for-type (assoc msg-type callbacks)))
|
||||
(if (not cb-for-type)
|
||||
(nconc callbacks (list (cons msg-type cb)))
|
||||
(setq cb (apply-partially
|
||||
(lambda (cb1 cb2 msg)
|
||||
(funcall cb1 msg)
|
||||
(funcall cb2 msg))
|
||||
(cdr cb-for-type)
|
||||
cb))
|
||||
(setq cb (lambda (msg)
|
||||
(funcall cb-for-type msg)
|
||||
(funcall cb msg)))
|
||||
(setcdr cb-for-type cb))))))
|
||||
|
||||
(defun jupyter-add-callback (req msg-type cb &rest callbacks)
|
||||
|
|
Loading…
Add table
Reference in a new issue